Problem with 18 code project | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponses
+ 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