Answered step by step
Verified Expert Solution
Question
1 Approved Answer
a , 5 pts ) A casino wants to give Cold status to customers who have elther 1 ) spent 1 0 0 0 0
a pts A casino wants to give "Cold" status to customers who have elther spent dollars or more, or spent nights or more at the hotel. But If both are true, It wants to give the customer "platinum" status. Can you fix the bug in the following code by changing the condition in the first line?
print Gold
elif spending and astehts :
printplatinum
etse:
printNormal
NameError Traceback most recent call last
sipythoninputaaded in longrightarrow
longrightarrow spending nights :
print
elif spending and nights :
print
else:
NameError: name 'spending' not defined
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