Mega sales
RadhikaGupta1 (0)

Can anyone tell me why my line 4 isn't working. Every time I type in anything more than 20 it still comes up with a one pound voucher.

You are viewing a single comment. View All
OmniShift (31)

mcuringa's solution is probably best, but what you were probably aiming for was:
if money > 10 and money <= 20:

Note the 'and' keyword and the fact that we compare 20 to money again (in a second condition, the variable is not implied; it needs to be stated again, because computers just aren't as smart as people when it comes to this :P)