0

I have a script simply

print("Do you want item 1? It costs 3.60")
answer = input()
if answer == "yes":
     item1cost = 3.60
else:
     item1cost = 0
print("Do you want item 2? It costs 3.90")
answer = input()
if answer == "yes":
     item2cost = 3.90
else:
     item2cost = 0
print(item1cost+item2cost)

I have tried to look at other questions, but they do not answer the question at all xd Please help quickly. edit:

0 Answers0