0

how to write print("finished") below 2 lines, if i enter 2 times enter then results appears,

i = 0 while 1==1: print(i) i = i + 1 if i >= 5: print("Breaking") break print("Finished") and if i m doing on same line then it shows error

26th Mar 2019, 2:34 PM
Aayush Namdev
Aayush Namdev - avatar
1 Odpowiedź
+ 2
hi Aayush, seems I am a little confused about what you are going to achieve. Is it true that you want to print like that: Breaking Finished ? Then modify your code to: print("Breaking", end='-')
26th Mar 2019, 3:10 PM
Lothar
Lothar - avatar