1) I ask the user to input a number as a string.
2) I convert the string to an integer.
3) I perform a comparison to see if the user's number is a multiple of 10.
2) I convert the string to an integer.
3) I perform a comparison to see if the user's number is a multiple of 10.
number = input("Provide a number: ") user_input = int(number) if user_input % 10 == 0: print("Your number is a multiple of 10.") else: print("Your number is not a multiple of 10.")I receive the following error:
Error:Traceback (most recent call last):
File "main.py", line 2, in <module>
user_input = int(number)
ValueError: invalid literal for int() with base 10: 'Provide a number: '