Hello friends, could someone help me to solve this code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Hello friends, could someone help me to solve this code?

https://code.sololearn.com/cKtnvYDKj9gD/?ref=app

27th Jan 2022, 6:20 PM
Kelbis Hernandez
Kelbis Hernandez - avatar
2 Answers
+ 2
import math h = int(input()) w = int(input()) one = 60*2 door = w*h*12*2 print (math.ceil(door/one)) #copied
27th Jan 2022, 6:40 PM
Chigozie Anyaeji 🇳🇬
Chigozie Anyaeji 🇳🇬 - avatar
0
G'day Kelbis Hernandez I reckon the instructions in the Duct Tape challenge are a bit vague and a bit wrong. The vagueness is that the door values are given in feet. This is cleared up if we read the ! explanation balloon. The wrongness is that the duct tape roll is specifically said to be 60 feet *2 inches when it is 60 inches *2 inches (== 5 feet *2 inches). The tricky part after getting the length and conversion correct is to round up if the division is more than a complete roll. I did it in C differently to the code that ℂ𝕙𝕚𝕘𝕠𝕫𝕚𝕖 𝔸𝕟𝕪𝕒𝕖𝕛𝕚🇳🇬 has spammed into your question (please don't give whole answers, just hints or corrections).
27th Jan 2022, 11:24 PM
HungryTradie
HungryTradie - avatar