How to inform error when user insert input which is not integer as requested?
For example:
number = int(input("Input the number: "))
I want to code something like: if number "is not" integer, so
if number is not integers
print("The input was not numerical value. Please try again")
else:
print ("Input "+ str(number) + " elements in the list:")
Can you help me.
Thank you!