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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!