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
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='-')