Commit 5e38ff17 by BellCodeEditor

save project

parent 5841488e
Showing with 7 additions and 0 deletions
dict={"可口可乐":5,"鸡翅":10,"汉堡":15,"蛋挞":5}
d=input("What would you like?")
if d in dict:
print("I just have" +d+" ,it is only"+ str(dict[d])+ "dollars ")
else:
print("Sorry,I do not have it.See you next time.")
\ 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