that is probably because your code doesn't work for names which have two words like 'Donald Trump'. you need to figure out a way you can ignore the space('') between the words.
hope this helps. :)
Well all tests pass, but exit code says this
Traceback (most recent call last):
File "main.py", line 49, in
test.assert_equals(sexy_name('DONALD TRUMP'), "THE ULTIMATE SEXIEST")
File "/home/codewarrior/solution.py", line 10, in sexy_name
score =score+ SCORES[i]
KeyError: ' '
Ruby translation kumited :) please check and approve ~~
Python 3 should be enabled.
I mean it's really more of an issue ;P
Is that even a suggestion? ;-)
Your algorithm is incorrect. It ranks "Donald Trump" as "The ultimate sexy", but this is clearly not the case.
(I also changed the tests a bit to prevent some malicious modifications)
Instructions need to include a comment on how to hanble spaces when 2 names are included, alternatively the scores dictionary needs to include a space probably with value 0.
The submission tests include lowercase letters, yet the description and basic tests suggest that only uppercase letters are used
Add the names of the tests checks written in lowercase.
Now is not checked.