Tip calculator | Sololearn: Learn to code for FREE!

0

Tip calculator

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

2/8/2021 12:03:41 PM

Reyhane Shafi'ee

1 Answer

New Answer

+6

#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))