Wrote code "Mathematics", error in tests 4 and 5. Who knows what is in these tests?
9/24/2020 9:39:10 AM
Konstantin K I think I got this problem. Please try at the end of your code write:
if k == 1:
but the last line with tab distance from left.
The tests are hidden to force you to think about scenarios that are within the brief, but may not be immediately obvious.
This approach helps develop logic thinking.
PS: Is 'Mathematics' only available to pro?
Rik Wittkopp Yes and free access for 30 days after completing BTS
JaScript I understood what the problem is, I fix the code
McInventor29 I use the function ival() too.
JaScript Yes of course.
I fixed the code, but still there was an error in test 4.
JaScript I need to know that in test 4.
Changed the code, everything works. What was the problem I did not understand. https://code.sololearn.com/cts0oL4WuJrF/?ref=app
I was stuck on this one too, but I found a really simple way to solve it.
(Hint: use the function eval(). )
Also, I’m using SoloLearn Pro because of the BTS challenge.
Did you test your code on the Playground and know how it works?
Konstantin K And as I understand what was asked, your code does it. Where is your attempt?
What can be done without your attempt, what do you expect?
Learn Playing. Play Learning
Send us a message