1234567891011121314151617181920212223 |
- #Write your code below this line 👇
- import math
- def paint_calc(height, width, cover):
- number_of_cans = height * width / cover
- number_of_cans = math.ceil(number_of_cans)
- print(f"You'll need {number_of_cans} cans of paint.")
- #Write your code above this line 👆
- # Define a function called paint_calc() so that the code below works.
- # 🚨 Don't change the code below 👇
- test_h = int(input("Height of wall: "))
- test_w = int(input("Width of wall: "))
- coverage = 5
- paint_calc(height=test_h, width=test_w, cover=coverage)
|