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
4 Réponses
+ 4
round() rounds to the nearest whole number, and you need to round up, or choose another way to solve... 😎
+ 3
It could be a problem with the division and then the rounding.
+ 1
Okey thank !
+ 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