+ 1
why does idle say: ''SyntaxError: multiple statements found while compiling a single statement'', when i copy-paste one of your
>>> i = 1 while i <=5: print(i) i = i + 1 print("Finished!") SyntaxError: multiple statements found while compiling a single statement >>> i = 1 while i <=5: print(i) i = i + 1 print("Finished!")
1 ответ
+ 2
Thats a Python console buddy. There should be only 1 statement per line. You could write that code in an IDE and save it as .py and then run it in an interpreter so you could write multiple lines