0
Tip calculator
Can someone pls help me through solving tip calculator in python? I don't get it :(
1 Resposta
+ 8
#Acts like a vacuum for user to input the bill amount
bill = int(input())
x = 20 #tip percentage
y = 100 #overrall percentage
#calculates the tip amount
tip = (bill * int(x))/int(y)
print(float(tip))