Last updated 4 years ago
So if we ask a user to enter a number - the comptuer store that value as a STRING - and we cannot do math with Strings.
So how can we tell the computer that we want the value to be an integer?
Prompt User to Enter a Numeric Value
Cast that value to an int
then use that number in math
number = input("Enter a Number Greater than 0: ") print(number + number) number = int(number) print(number = number)