Quick actions

cmd+k|ctrl+k

Navigation

Languages

Conditional car

Snippet info

Language

Python

Visibility

public

Author

shigeotoga

Created

2026-08-05T11:09:59.424748Z

Updated

2026-08-05T11:32:09.158894Z

is_old = False
is_licensed = True

if is_old:
    print("Old enough.")
else:
    print("Not old enough.")

if is_licensed:
    print("Has License.")
else:
    print("Does not have license.")
    
if is_old & is_licensed:
    print("You can drive.")
elif is_licensed:
    print("How did you even get a license?")
else:
    print("You cannot drive. Begone!")

print("G'day")
INFO