Answered step by step
Verified Expert Solution
Link Copied!

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,5 pts) A casino wants to give "Cold" status to customers who have elther 1) spent 10000 dollars or more, or 2) spent 100 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?
[13]
print ("Gold")
elif spending 10000 and astehts 100 :
print("platinum")
etse:
print("Normal")
NameError Traceback (most recent call last)
sipython-input-13-aa8d(6e8d2276 in longrightarrow110000=100100001001>()
longrightarrow1If spending 10000or nights =100 :
2 print ("Gold")
3 elif spending 10000 and nights 100 :
print("Platinum")
5 else: 1
NameError: name 'spending' is not defined
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Development For Dummies

Authors: Allen G. Taylor

1st Edition

978-0764507526

More Books

Students also viewed these Databases questions