Computer Science, asked by gargiarora3404, 4 months ago

Write a program to check the eligibility to drive a car.​

Answers

Answered by jai696
7

\large\mathsf\color{pink}{Solution\: using\: python\: 3}

can_drive = lambda age: "can't" if age < 18 else "can"

age = int(input("enter age: "))

print(f"You {can_drive(age)} drive!")

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions