+ 1

Skipped line in exmaple code.

i = 0 while True: i = i +1 if i == 2: print("Skipping 2") continue if i == 5: print("Breaking") break print(i) print("Finished") The line between print(i) and print("Finished"). How do I make that empty space.

29th Mar 2017, 2:12 AM
Doug
3 Respuestas
0
\n makes a new line. maybe that would work?
29th Mar 2017, 2:21 AM
Patrick
0
print(i\nFinished)
29th Mar 2017, 2:27 AM
Patrick
0
print('\n\"Finished\"') gets you"Finished" on 2nd line. print('\nFinished') should get you Finished on 2nd line?
29th Mar 2017, 2:39 AM
Patrick