Commit 29eb9a64 by BellCodeEditor

save project

parent 83b73772
Showing with 13 additions and 0 deletions
fruit = {'watermelon':1,'apple':5}
k = input('today fruit name:')
v = int(input(' input '+k+ ' price: '))
if k in fruit:
if v < fruit[k] :
fruit[k] = v
print('the price was new')
else :
print('the price not had change')
else :
fruit[k] = v
print('had new thing and price')
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