Quick actions

cmd+k|ctrl+k

Navigation

Languages

Check driver age

Snippet info

Language

Python

Visibility

public

Author

projectsfiae

Created

2025-08-25T06:13:23.205247Z

Updated

2025-08-25T06:13:23.205247Z

def checkDriverAge(age=0):
    if int(age) < 18:
        print("Sorry, you are too young to drive this car.")
    elif int(age) > 18:
        print("Powering on: Enjoy your ride!")
    elif int(age) == 18:
        print("Congratulations on your first year of driving. Enjoy the ride!")

checkDriverAge(90)
INFO