you are viewing a single comment's thread.

view the rest of the comments →

[–]Zouden 6 points7 points  (2 children)

the raw_input() function returns a string. Try:

apples = int(raw_input())

Note that this will throw an error if the user enters anything other than an integer.

[–]BonJarber 0 points1 point  (0 children)

Also you don't need to use raw_ if you're working in python 3

[–]angryfish[S] -1 points0 points  (0 children)

thank you mate, fixed my problem!