Continue statement in while loop python
03:47 22 Apr 2020

I am a beginner in python and I am having trouble with this code:

count = 0

while count <15:
   if count == 5:
      continue
   print(count)
   count += 1

When the value of count = 5 it stops the loop as if there was a break statement. Why is it so? Please help!

python while-loop break continue