1whatever = input("Pick an integer > ")
2 try:
3 whatever_as_an_integer = int(whatever)
4 print("That was an integer.")
5
6 except ValueError:
7 print("That is not an integer.")
1num = input("Enter your number ")
2
3print("\n")
4if num.isdigit():
5 print("User input is Number ")
6else:
7 print("User input is string ")