+ 4
Tip Calculator need help on this one python for begineers it wont work
bill = int(input("enter your bill amount")) meal = float(input("enter your meal amount: ")) tip = int(input("enter your tip %: ")) tax = .06
5 RĂ©ponses
+ 3
Instead of entering your bill amount use "int(input())"
And write meal as "x"
And lastly tip as "20/100*bill" this will calculate percentage of tip
Use this code it will work đ
bill = int(input())
x=float(20/100*bill)
print (x)
+ 2
Well you dont have it printing any text or doing any calculations. In other words you just have it take user input
+ 1
You have user input. Actions with which you do not perform.
+ 1
You're going to need to do some multiplication there.
+ 1
#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))