Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apples = input('How many apples do you want? ')
- print(int(apples) + 1)
- In python you cannot add a number to a string, instead you have to convert the string variable to an integer(int).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement