Break


#1



https://www.codecademy.com/courses/python-beginner-en-cxMGf/0/6?curriculum_id=4f89dab3d788890003000096


I am unable to understand, what 'condition' is 'True' here? 'while True' is it a condition? Could anyone clarify me the condition in this code.


count = 0

while True:
    print count
    count += 1
    if count >= 10:
        break


#2

The if condition is true until the count reaches 10.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.