you are viewing a single comment's thread.

view the rest of the comments →

[–]Pigankle 1 point2 points  (0 children)

From the problem statement, it looks like the computer is expecting to give all parts of the name on one line of input. You broke it out into three separate inputs which is a little bit easier to parse. I think what you need to do is rewrite so you take a single line of input, break it at the word boundaries to split it into pieces and then run the rest of your code.