why does idle say: ''SyntaxError: multiple statements found while compiling a single statement'', when i copy-paste one of your | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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!")

7th Mar 2020, 7:42 AM
Not a H4CK3R
Not a H4CK3R - avatar
1 Answer
+ 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
7th Mar 2020, 7:56 AM
かんでん
かんでん - avatar