Answered step by step
Verified Expert Solution
Question
1 Approved Answer
def main(): age = float(input('Enter age: ')) # insert statement here to call the buffet_price function print('Please pay $', price) def buffet_price(age): if age >=
def main():
age = float(input('Enter age: '))
# insert statement here to call the buffet_price function
print('Please pay $', price)
def buffet_price(age):
if age >= 60 or age <= 10:
price = 9
else:
price = 12
return price
main()
Which of the following statements should be used to call the buffet_price function?
A. | buffet_price(price, age) | |
B. | buffet_price(age, price) | |
C. | price = buffet_price(age) | |
D. | age = buffet_price(price) |
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