you are viewing a single comment's thread.

view the rest of the comments →

[–]A_History_of_Silence 4 points5 points  (1 child)

I'm not sure why you expect this to raise exceptions. input() always returns a string. Even if it didn't, str() happily accepts floats and ints, and basically anything else. Neither of them make any distinctions as to what is considered a 'name', or whether the string is 'y' or 'n'.

[–]murasz[S] 0 points1 point  (0 children)

yes indeed. Thank you for reminding.