Im doing a very simple piece of code, and it keeps generating a Syntax error, multiple statements found while compiling a single statement. I can
t see what is wrong with my code ! :( , please look at the link as my code typed here may be correct but I cannot see the difference between it and that in the IDLE linked.
I`m attempting to convert the string '10' to an integer so the if statement works.
here is the screen shot. http://www.screencast.com/t/0zItqcn5P6d
age = '10'
converted_age = int(age)
if converted_age == 10:
print("whats the best way to speak to a monster?")
print("from as far away as possible!")
m a newbie so this caught me out. I wont do that again hopefully. the reason I pasted a code shot instead of typing it was I new there was something there I "couldn
t see" hence I screen capped it. – jitterbug Oct 15 '13 at 11:46{}
icon), we're guaranteed to get exactly the code you had problems with (including things like tab/space mixing, non-printing characters, etc.). Anyway, it's not a big deal to not know the site before you ever used it; you'll learn. – abarnert Oct 15 '13 at 17:45