How to input numbers
Since you guys are better than me do you mind telling me how to put a code for when I put in a command for it only to accept numbers
You can surround a casted input statement with a try - except block and a loop that just does another input if the cast fails.
You can als do this:
number = input("Enter a number") if number.isdigit():#If the input is a number: print("yay") else: print(":( i wanted a number")
Of course you can loop it and stuff but that is the foundation