Question: 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
Get step-by-step solutions from verified subject matter experts
