+ 2
Help! 20 Code Project, Tip Calculator, Python for Beginners
I can make the first text case, but I can't make to the second Text case. Please help!
4 Respuestas
+ 5
Like this
bill = int(input())
tip = bill*20/100
print(tip)
+ 5
You need to write a code that will work for any input, not just that one test case. You can declare bill as input variable to take the input from the compiler , then manipulate what you get into what you need to output.
bill = int(input())
+ 1
I got it now, thank you so much :)
0
My code:
bill = int(input())
bill = 125*20/100
print(bill)
I just wrote a code for one test case. I don't know writing a code that will work for any input. :/