checking if input is a string code example
Example: how to check whether input is string or not
num = input("Enter your number ")
print("\n")
if num.isdigit():
print("User input is Number ")
else:
print("User input is string ")
num = input("Enter your number ")
print("\n")
if num.isdigit():
print("User input is Number ")
else:
print("User input is string ")