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

29th Sep 2016, 7:38 AM
Henry
Henry - avatar
2 Respostas
+ 1
i = 1 while i <=5: print(i) i = i + 1 print("Finished!")
29th Sep 2016, 9:08 AM
Oliver Brown
Oliver Brown - avatar
+ 1
Out of the while loop. See the indentation.
22nd Jun 2017, 9:27 AM
ASHWIN AISHVARYA VARDHAN
ASHWIN AISHVARYA VARDHAN - avatar