+ 1
in "basic programming", there is a "not isnumber" command to check whether the user inputs a number or not. is there in python?
2 Antworten
+ 2
Python strings (which is what input() gives you) have an isdigit() method that returns a boolean e.g.
user_in = input()
print(user_in.isdigit())
0
thank you bro TurtleShell ...
i will try it..