Commit 985a1f34 by BellCodeEditor

save project

parent f5751619
Showing with 16 additions and 0 deletions
fruit = {"apple":10,"banana":15,"orange":9}
print(fruit)
z = input("What do you have?")
k = input("How much the fruit?")
while True:
if z in fruit:
if fruit[z] <= int(k):
print("Don not buy.")
break
else:
print("The price is down.")
break
else:
fruit[z] = int(k)
break
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment