4 tests of 5 are ok? (Code Coach) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 8

4 tests of 5 are ok? (Code Coach)

I have 4 tests of 5 - ok. But test number 4 is error. And it is close for looking input number. So, i never know why...

28th Dec 2019, 10:00 PM
Petr
20 Answers
+ 8
SoundInfinity it's amazing that I went through the middle level without errors and got stuck on the easiest :))
28th Dec 2019, 10:16 PM
Petr
+ 7
SoundInfinity The first - helloween candy 3 other I did well, without misstake
28th Dec 2019, 10:04 PM
Petr
+ 7
I believe this is a rounding error, but not sure and cannot verify this
28th Dec 2019, 10:09 PM
Petr
+ 7
Alexandr The problem is that I am making a draft in the Solo playgraund (sandbox), and libraries cannot be used there. because to solve the problem of one sololearn is not enough for me :)) Проблема в том, что черновик я делаю в Solo playgraund (песочнице), а там нельзя использовать библиотеки. т.к. что бы решить задачу одного sololearn мне недостаточно:)) Но тебе огромное спасибо, так как я так и делал в другом приложении, но почему то был уверен, что тут меня бортанет!:)
28th Dec 2019, 10:49 PM
Petr
+ 7
Alexandr you made me happy and not much wiser :)) they answered me so that I realized that you can’t connect modules at all here, though I asked about the graphics, but I understood it as "all modules" :)) ты сделал меня счастливы́м и не много мудрее:)) мне отвечали так, что я понял, что тут вообще модули подключать нельзя, правда я спрашивал про графику, а понял как "все модули":))
28th Dec 2019, 10:57 PM
Petr
+ 7
Aymane Boukrouh Alexandr Spasibo very mach. Thank you¡!!!!!!!
28th Dec 2019, 10:59 PM
Petr
+ 6
Aymane Boukrouh https://code.sololearn.com/ccn66CNXt3BI/?ref=app But i don,t want see the rigth code. I want know for what varianr of input so wrong?:)
28th Dec 2019, 10:38 PM
Petr
+ 6
Aymane Boukrouh Yes. You are rigth, but i try decide all task with add mistakes from users and it is my hobby. But this addition is not mistake:)
28th Dec 2019, 10:53 PM
Petr
+ 5
Erialdo Meta I am glad to see your answer, but problem was not in code. Offen i have a good result in code coach for a few tests, but one is not good and i don,t see details becose it is not avaible
30th Dec 2019, 10:12 PM
Petr
+ 4
Well, I have no idea how to respond, but that could be it.
28th Dec 2019, 10:13 PM
SoundInfinity
SoundInfinity - avatar
+ 4
Petr just like what Alexandr said (again 😂), math library is installed by default as a standard python library, so whereever there is python, math library exists. You should not have problems using math.ceil
28th Dec 2019, 10:55 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 4
Erialdo Meta You did it well:)
30th Dec 2019, 10:23 PM
Petr
+ 4
Erialdo Meta as an advice then, in PEP8, it is recommended that the maximum lenght of a line should be 79, so one-liners don't necessarly mean your code is great. But, that was a good one 👌 Read more about PEP8 for better pythonic structure
30th Dec 2019, 10:27 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 3
Which challenge are you doing?
28th Dec 2019, 10:02 PM
SoundInfinity
SoundInfinity - avatar
+ 3
Petr, what Alexandr shared solved the problem for me, but just to add, there is a lot of unecessary code in your code. The houses are always bigger than 3, so all the if else statements in your code are just decoration, because the first if is always excuted.
28th Dec 2019, 10:49 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 3
Erialdo Meta 😂😂👌
30th Dec 2019, 10:34 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 2
Petr can you share your code ?
28th Dec 2019, 10:32 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 1
Keep calm and keep coding :))
30th Dec 2019, 4:59 PM
Alastor
Alastor - avatar
0
Hi
29th Dec 2019, 3:16 PM
Yan tshimeta
Yan tshimeta - avatar
0
Vhhv
30th Dec 2019, 1:00 PM
beth ocampo
beth ocampo - avatar