0
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 ti
How can we solve please help me
7 odpowiedzi
+ 3
Find 20% of bill amount.
Print result.
see hints , read full description
+ 2
If you still need help after Jayakrishna's advice, copy your code and add it to the code playground, then attach it here.
+ 2
bill = int(input())
print(bill*20/100)
https://code.sololearn.com/c1nVBfG9qyzM/?ref=app
+ 1
Having the answer, simply "so" isn't the best way to learn.
Imagine never taking your first step (and falling over). You'd never walk nor learn to.
+ 1
Kifayatullah Hamid
It just one line of code.
You need to understand, how to take input.. and how to find some percentage..?
Both are explained well in lesson with examples. Why you waiting for answer since a day...?
Any time, try yourself first. and post your attempt to get further help.
find x% of y by :
y * x/100
Accept input by : input() function.
If you need integer input, convert to int by int() as
int("10")
int( input() )
Hope it helps to understand..
- 1
No sir please write the code
- 1
bill = int(input())
percent=(bill*20)/100
print(percent)