I am currently learning Python using Jason Briggs' book. I tried entering some code from the book into the IDLE shell and getting a "multiple statement error" message. I've even deleted and re-inserted 4 spaces in all the lines of code.
I have had this issue before, but couldn't find out how to solve it. I searched online, but I don't think I have an indentation or coding error.
I'm using IDLE 34 on Windows Professional 7. This is what I typed into the IDLE shell:
found_coins = 20
magic_coins = 70
stolen_coins = 3
coins = found_coins
for week in range(1, 53):
coins = coins + magic_coins - stolen_coins
print('Week %s = %s' % (week, coins))
**Click Enter**
The error I get is:
SyntaxError: multiple statements found while compiling a single statement