0

Tip calculator

Can someone pls help me through solving tip calculator in python? I don't get it :(

8th Feb 2021, 12:03 PM
Reyhane Shafi'ee
Reyhane Shafi'ee - avatar
1 Réponse
+ 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))
25th Apr 2021, 9:49 AM
Jackson Kairani Maina
Jackson Kairani Maina - avatar