print ("How much does your meal cost")
meal = 0
tip = 0
tax = 0.0675
action = input( "Type amount of meal ")
if action.isdigit():
meal = (action)
print (meal)
tips = input(" type the perentage of tip you want to give ")
if tips.isdigit():
tip = tips
print(tip)
我已经写好了,但不知道如何获取。
print(tip)
当有人输入数字时,它需要显示为百分比。
数字/100
。 - Adam Smith