id/email
password
forgot password | create account
about | help | prefs
ReadingBatcode reading practice

 

 

Athenian: Loopswhile2

prev  |  next  |  chance

Pay close attention to details such as indentations!

def practice(i):
    while i < 6:
        if i == 3:
            break
        i += 1
    return i
Function Call  Return Value
practice(10)
practice(3)
practice(-2)
practice(1)
practice(6)

Experiment with this code on Gitpod.io

⬅ Back