Problem with 18 code project | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Problem with 18 code project

Hi everyone, Iā€™m new in programming and started from this course. Please help me with 18 code project about ā€œTip calculatorā€. My code is: bill = int(input(50)) tip = (bill*20/100) print(float(tip)) But the result isnā€™t correct by the system. Whatā€™s my mistakes? Thank you in advance.

4th Nov 2021, 2:56 PM
Lilit Harutyunyan
Lilit Harutyunyan - avatar
3 Answers
+ 6
Lilit , use only input or output in code coach exercises that is demanded in the task description, otherwise this creates errors with the test cases. remove '50' from the input() function
4th Nov 2021, 3:05 PM
Lothar
Lothar - avatar
+ 1
wow, thank you, I got it šŸ˜Ž I also tried without float because of dividing (even if itā€™s demanded in the task). Once again thanks
4th Nov 2021, 3:18 PM
Lilit Harutyunyan
Lilit Harutyunyan - avatar
0
I'm stuck here ECMAScript6 "Code Project" Quiz Lesson 64.1, help please. Thank you.
15th Nov 2021, 3:35 PM
Junior Nidjebu
Junior Nidjebu - avatar