Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Conditionals 1 questions: 1. Write a function called is old enough to drink. Given a number, in this case an age, is old enough to
Conditionals 1 questions: 1. Write a function called "is old enough to drink". Given a number, in this case an age, "is old enough to drink" retums whether a person of this given age is old enough to legally drink in the United States. Notes: . The legal drinking age in the United States is 21. output = ig old enough to drink (22) print (output) # --> True PYTHIONS 2 3 def is_old_enough to drink(age): # your code here pass 2. Write a function called "is old enough to drive". Given a number in this case an age, "is old enough to drive" retums whether a personofthis given age is old enough to legally drive in the United States. Notes: The legal driving age in the United States is 16. output = iseld enough to drive (22) print (output) # --> True PTTHONG 1 - def is_old_enough_to_drive (age): 2 # your code here 3 pass 3. Write a function called "is old enough to vote" Given a numbe, in this case an age, is old enough to vote retums whether a person of this given age is old enough to legally vote in the United States. Notes: . The legalvoting age in the United States is 18. output = iseld enough touvote 22) print (output) # --> True PYTHON 1.def is old enough_to_vote(age) # your code here pass
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started