Commit 7aae8f24 by BellCodeEditor

save project

parent b896b018
Showing with 11 additions and 0 deletions
fruit={'苹果':4,'橘子':3,'西瓜':5,'樱桃':15}
k=input('what fruit do you want to find?')
v=float(input('today price is'))
if k in fruit:
if v>fruit[k]:
print('Dont not buy when the price goes up')
else:
print('Go and buy it')
else:
print('the fruit was not found')
\ 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