0

Duct Tape

Hello guys, This is my code for the duct tape probleme, The two first test are ok but the 4 others are wrong (and hidden so I don’t figure out what happened): x = int(input()) y = int(input()) dutch = 60*0.16 door = (x*y)*2 rolls = door/dutch print(round(rolls)) Thanks

6th Apr 2023, 5:55 AM
Julien Badii
4 Réponses
+ 4
round() rounds to the nearest whole number, and you need to round up, or choose another way to solve... 😎
6th Apr 2023, 7:04 AM
Solo
Solo - avatar
+ 3
It could be a problem with the division and then the rounding.
6th Apr 2023, 6:19 AM
Ausgrindtube
Ausgrindtube - avatar
+ 1
Okey thank !
6th Apr 2023, 9:45 AM
Julien Badii
+ 1
Hey! Why does the task say that tape is 60 feet long, cause it shuld be 60 inches long instead? Because we devide 60 by 12 in the right code
13th Jun 2023, 7:00 PM
Alexander Glyantsev