Tip calculator | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 3

Tip calculator

Hey y’all, so i started using this app last summer and came back today where I left off. I’ve clearly forgetting what I’ve learned. I’m currently stuck trying to figure out how to complete the “Tip Calculator” project using Python. Are there any tips or help y’all can provide? Thanks in advance!

6th Apr 2022, 4:29 PM
Austin Lindquist
Austin Lindquist - avatar
24 Answers
+ 4
Revise the lessons, then do task. If you need help, please link your code so we can see what you've tried.
6th Apr 2022, 5:17 PM
Lisa
Lisa - avatar
+ 4
bill = int(input()) tip = bill*20/100 print(tip)
7th Apr 2022, 12:56 PM
Joice Eguilos
Joice Eguilos - avatar
+ 3
Seriously, take 5min and read the first lessons again – don't guess. output() = tip Doesn't make any sense.
6th Apr 2022, 5:43 PM
Lisa
Lisa - avatar
+ 3
It is so easy(: Bill = int(input()) Tip = float(Bill*0.2) Print(tip)
7th Apr 2022, 11:36 AM
Habtamu Geremew
+ 3
Habtamu Geremew Your code has several typos in variable and function names. The float() isn't necessary.
7th Apr 2022, 11:47 AM
Lisa
Lisa - avatar
+ 2
When you don't show us your code, we can't tell you what to try else. 👉 LINK YOUR CODE
6th Apr 2022, 5:21 PM
Lisa
Lisa - avatar
+ 2
You can cut that in half bill = int(input()) print (bill/5)
7th Apr 2022, 6:27 PM
Lz1234
+ 2
I think you should go over your lessons again then if you have any other issue, link your code so we can check it out
8th Apr 2022, 11:50 AM
Donald Chibuzo
Donald Chibuzo - avatar
+ 1
Simba tried something else as in languages? Or just different formulas? Lisa sounds good, was thinking of doing that. Thank you! Will do.
6th Apr 2022, 5:19 PM
Austin Lindquist
Austin Lindquist - avatar
+ 1
Hint you got to do print not output
6th Apr 2022, 11:55 PM
Lz1234
+ 1
bill = int(input()) #your code goes here tip= bill*0.2 print(tip)
7th Apr 2022, 6:37 PM
Hemant Kumbhalkar
Hemant Kumbhalkar - avatar
+ 1
If you've forgotten, just take the lesson again. But make sure u jot this time.
7th Apr 2022, 10:54 PM
Durojaiye Olatunde David
Durojaiye Olatunde David - avatar
0
https://code.sololearn.com/cMo0cgHNpC3f/?ref=app Lisa heres one of the things i tried using
6th Apr 2022, 5:28 PM
Austin Lindquist
Austin Lindquist - avatar
0
Remove line 2, output the resulting tip
6th Apr 2022, 5:30 PM
Lisa
Lisa - avatar
0
https://code.sololearn.com/cMo0cgHNpC3f/?ref=app Lisa is this closer to the right direction?
6th Apr 2022, 5:40 PM
Austin Lindquist
Austin Lindquist - avatar
0
Fixed it. Thanks.
6th Apr 2022, 6:30 PM
Austin Lindquist
Austin Lindquist - avatar
0
Great that you could solve it! :)
6th Apr 2022, 6:30 PM
Lisa
Lisa - avatar
0
Infeed! And yes, funny what a little review and thought can do for oneself. :) XD
6th Apr 2022, 6:32 PM
Austin Lindquist
Austin Lindquist - avatar
0
Lz1234 awesome, thank you! I appreciate that
7th Apr 2022, 12:16 AM
Austin Lindquist
Austin Lindquist - avatar
0
Hello
7th Apr 2022, 6:38 PM
William Jean
William Jean - avatar