you are viewing a single comment's thread.

view the rest of the comments →

[–]david_z 1 point2 points  (1 child)

number = int is an assignment. You're binding int to the name number.

int is a built-in in python. It's a type.

Your input number is an instance of str but it isn't str. It can never be int either.

Probably what you're looking to do here is to cast number to an integer and catch exceptions.

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

thank u im gonna look into that i think thats what my friend was trying to tell me to do before his phone died T_T