- 2
bill = int(input(50*20/100)) print(bil)
how to solve it pls tell the wrong answer
5 Answers
+ 1
print(bill)* this should be done and remove the 50 and give a separate place like int(input())
0
Specify the language using specific tags
0
"""Could anyone help me out for this code ? I am unable to solve it . I have tried a lot but couldn't get it..
When you go out to eat, you always tip 20% of the bill amount. But whoâs got the time to calculate the right tip amount every time? Not you thatâs for sure! Youâre making a program to calculate tips and save some time.
Your program needs to take the bill amount as input and output the tip as a float.
Sample Input
50
Sample Output
10.0
"""
bill = int(input("bill amount"))
rng = (20//100)
tip = 0
def calcTip():
tip = rng * bill
print(tip)
calcTip()
0
I have. The input bill =input() how do I get outpost I keep getting invalid syntex
- 1
Hi! do you need to take 20% of the number 50?