How to do the tip calculator in python beginners | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to do the tip calculator in python beginners

6th May 2021, 5:32 PM
MUHAMMATH SUFYAAN S
MUHAMMATH SUFYAAN S - avatar
10 Answers
+ 5
bill=int(input()) print(bill*20/100) #just remove 50
6th May 2021, 6:07 PM
Atul [Inactive]
+ 4
Explanation: 20% of 50 is 10. To calculate 20% of a given amount, you can multiply the number by 20 and divide it by 100: 50*20/100 = 10.0 #I think so this much of hint is sufficient . For more hints post your attempt
6th May 2021, 5:36 PM
Atul [Inactive]
+ 2
Can't provide direct answers. Till you haven't given your 100%
6th May 2021, 5:42 PM
Atul [Inactive]
+ 1
Ohh I thought I have to do the sum in the code that's why all this confusion 😂
6th May 2021, 6:10 PM
MUHAMMATH SUFYAAN S
MUHAMMATH SUFYAAN S - avatar
+ 1
No problem
6th May 2021, 6:37 PM
Atul [Inactive]
+ 1
MUHAMMATH SUFYAAN S bill = int(input()) #your code goes here bill /=5 print (bill)
7th May 2021, 12:39 AM
❤️😍Prerana😍❤️
❤️😍Prerana😍❤️ - avatar
0
I want the code bro
6th May 2021, 5:38 PM
MUHAMMATH SUFYAAN S
MUHAMMATH SUFYAAN S - avatar
0
Sorry post what u have tried
6th May 2021, 5:42 PM
Atul [Inactive]
0
bill=int(input(50)) print(bill*20/100)
6th May 2021, 5:46 PM
MUHAMMATH SUFYAAN S
MUHAMMATH SUFYAAN S - avatar
0
Same I was getting so annoyed because I was focusing on the float and stuff.
21st Sep 2021, 2:56 PM
Timothy Sillery