Help me in solving PYTH111 problem

My issue

Learning course: Learn Python
Problem Link: CodeChef: Practical coding for everyone

The correct ans is 3, the first condition is

“i” should be less than or equal to 5.

The second condition is

if i ==4 that is if the value of i is 4 then break the loop.

Hence, python is going to be printed only 3 times as the first time the value is going to be 0, the second time its going to be 2 and the third time it’ll be 4 and the loop will break as the second condition is met.