+ 2

python loop continue

why print(i) statement is written after break statement??

30th May 2017, 6:21 PM
Prithiviraaj
Prithiviraaj - avatar
2 Answers
0
without seeing the code, the break exits the loop and proceeds to the next part of the code which in your case is the print(I)
30th May 2017, 10:17 PM
Daemo
Daemo - avatar