+ 1

Double or float or sth else? Halloween Candy challenge problem- answered! Thank you.

HeY there, SOMEHOW MY CODE IS FLAWED BECAUSE ONLY THE FIRST TWO TESTS ARE SUCCESSFUL. CAN ANYONE GIVE ME A HINT? THANK YOU :) https://code.sololearn.com/cnXHMx4M6EWn/?ref=app

25th Jul 2020, 11:20 AM
The_Fox
The_Fox - avatar
4 ответов
25th Jul 2020, 11:27 AM
Arsenic
Arsenic - avatar
+ 2
Andrebot AstRein , use ceil function instead of round. The description says "rounded up" which needs ceiling 🐱
25th Jul 2020, 11:24 AM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 2
Yep, that did the magic! Interesring how a little word changes everything... :)
25th Jul 2020, 11:34 AM
The_Fox
The_Fox - avatar
0
Alright, I‘ll try that. Thanks everyone!
25th Jul 2020, 11:29 AM
The_Fox
The_Fox - avatar