python validation for integer code example
Example: how to create an integer validate python
try:
value=int(input("Type a number:"))
except ValueError:
print("This is not a whole number.")
try:
value=int(input("Type a number:"))
except ValueError:
print("This is not a whole number.")