0
Need an answer.
What is an output of this code? for i in [‘+’,’-‘]: print(i) break The output is given as: + Can any one reply how this happen?
3 odpowiedzi
+ 2
you print the first char '+', then you break the loop, that means program cotinues after the loop and it ends, because nothing is after the loop
+ 2
yes
+ 1
Ok if break statement is not present the next character ‘-‘ also prints right?