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

 

 

Athenian: Conditionalsconditionals1

prev  |  next  |  chance

By Anay '24

def check_age(age):
    if age < 21:
        return age

    return age + 5
Function Call  Return Value
check_age(5)
check_age(29)
check_age(42)
check_age(15)
check_age(0.38)
check_age(21)

Experiment with this code on Gitpod.io

⬅ Back