+ 2
I am facing an unknown error in my code ,the Test Case 3 is not passing.Please help me fix it!
It's a problem in the community section named "Duty Fee". Here's my code:- https://code.sololearn.com/c8jIZs1HGE4r/?ref=app
7 Answers
+ 5
Vaibhav Pandey ,
2 suggestions for your code:
> converting the input to float and multiplying it by 1.1 can be done in one step.
> using of the any() function simplifies the code and has an improved readability.
https://code.sololearn.com/cOCEPI3ooN9Z/?ref=app
+ 4
From community section *code coach* ..? Ok.
As i already told you, else part should execute only when non of list value is above 20 so you should indent it as belong to for loop, not to if block. Remove break in else part.
Condition i > 20 is enough. (Not >=)
+ 2
Your loop iterates only ones. You have break in both, if and else statements.
What is the task actually? Add description or full track details or link...
+ 2
Jayakrishna 🇮🇳 I just changed my code bro thank you!
+ 2
You're welcome..
+ 1
Jayakrishna 🇮🇳 I added bro it's a problem from the community section named Duty Fee.
+ 1
Lothar Once again bro thank you!!