user_input = (\"Enter a number and I will tell you the sum of the multiples of 3 and 5 leading up to it.\")
number = int(user_input)
I am simply trying
You are not actually prompting for a number. The user_input
in your example is the string literal Enter a number and I will tell you the sum of the multiples of 3 and 5 leading up to it.
, which can not be converted to a number.
User input can be prompted with input()
.
user_input = input("Enter a number and I will tell you the sum of the multiples of 3 and 5 leading up to it.")
number = int(user_input)