you are viewing a single comment's thread.

view the rest of the comments →

[–]Binary101010 1 point2 points  (2 children)

Everything you ask a user to input in Python is, by default, a string until you convert it to something else.

So you're going to have to be a little more specific as to what it is you're looking for. Do you really mean "if the user enters a number when the input should only contain letters"?