4 tests of 5 are ok? (Code Coach) | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
+ 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