Write a program to check the eligibility to drive a car.
Answers
Answered by
7
can_drive = lambda age: "can't" if age < 18 else "can"
age = int(input("enter age: "))
print(f"You {can_drive(age)} drive!")
Similar questions