0

How to solve the tip calculator code of python for beginner's

Python

11th Feb 2021, 3:06 PM
Phenomenal
Phenomenal - avatar
10 Respuestas
+ 12
It's simple. First you need to create a variable and assign integer input to it. You can make the input expect an integer by changing it to int (input ()). Isn't 20% equal to 20/100 or 0.2? You can use "*" to multiply variables containing numbers. You can use print () to print the output. By the way, I gave some hints. Try to finish it yourself. Show your try if you can't solve it anymore.
11th Feb 2021, 4:26 PM
Simba
Simba - avatar
+ 5
Are you telling about the code coach problem of python course?
11th Feb 2021, 3:50 PM
Atul [Inactive]
+ 4
finally i got to know how to solve a code for simple tip calculator we should use a variable x that works as a bill and then we should use bill input as int so x=int(input()) but we want tip in float so the output will be in float for 20% tip on a bill we can calculate by using this formula 20/100 float=x*20/100 and finally we have to print this code print(float) the output will be in float and this code helps to solve any integer bill amount :) x=int(input()) float=x*20/100 print(float)
11th Apr 2021, 6:34 AM
Arvind Pathak
Arvind Pathak - avatar
+ 3
I m getting for only one output in one time but it's have 3 input together So how can I give 3 inputs together Please help
7th Apr 2021, 3:46 AM
Arvind Pathak
Arvind Pathak - avatar
+ 2
i dont get the format they are asking for
18th Mar 2021, 1:03 PM
Jesus Christ
0
Yes
11th Feb 2021, 4:13 PM
Phenomenal
Phenomenal - avatar
0
Phenomenal To get the 20% of a value, just multiply it to 0.2 Example: 40 * 0.2 ---> 8 If you have errors in your code, please share with us so we may help. Thanks.
11th Feb 2021, 4:25 PM
noteve
noteve - avatar
0
Please show me the code solution.
12th Feb 2021, 2:44 AM
Phenomenal
Phenomenal - avatar
0
Can I get the code for it
4th May 2021, 3:53 PM
Rajeev
0
The input is supposed to be 125 right?
2nd Dec 2021, 3:54 PM
Nathan U