Python integer validation

41

how to create an integer validate python -

try:
    value=int(input("Type a number:"))
except ValueError:
    print("This is not a whole number.")

Comments

Submit
0 Comments