Question: In the code below, if the user enters an input of 1 0 0 0 , what would be the output? if _ _ name
In the code below, if the user enters an input of what would be the output?
if namemain:
cash floatinputHow much money do you have?
if cash :
printI can only buy the socks..."
elif cash :
printI can buy the shorts."
elif cash :
printI can buy the shirt."
elif cash :
printI can buy the jacket."
elif cash :
printI can buy anything!"
else:
printI cannot buy anything..."
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
