cara membuat integer validasi python

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