0
The 2nd print() is in or out of the while loop?
>>> i = 1 while i <=5: print(i) i = i + 1 print("Finished!") SyntaxError: multiple statements found while compiling a single statement
2 Respostas
+ 1
i = 1
while i <=5:
print(i)
i = i + 1
print("Finished!")
+ 1
Out of the while loop. See the indentation.