Answered step by step
Verified Expert Solution
Question
1 Approved Answer
NumberGuest = 0 TotalCost = 0 benefits = y print ( Welcome to ski park ) while True: guests = int (
NumberGuest
TotalCost
benefits y
printWelcome to ski park"
while True:
guests intinputfHow many guests in your party?Maximum guests per party:
for i in rangeguests:
if guests and guests :
age intinputf
Enter age of guest NumberGuest :
NumberGuest
if age :
TotalCost
printfTicket cost for guest age: $
printfTotal cost for the party: $TotalCost:f
elif age and age :
TotalCost
printfTicket cost for guest age: $
printfTotal cost for the party: $TotalCost:f
else:
TotalCost
printfTicket cost for guest age: $
printfTotal cost for the party: $TotalCost:f
else:
inputfNumber of guests must betwen and Please ReEnter:
Need completed in python coede
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