Quick actions

cmd+k|ctrl+k

Navigation

Languages

exercise

Snippet info

Language

Python

Visibility

public

Author

aaryashkc456

Created

2026-05-05T15:57:36.706975Z

Updated

2026-05-05T16:07:10.879638Z


def checkDriverAge(age=0):

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