Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- #Write your code below this line
- def paint_calc(height, width, cover):
- print()
- num_ = ((height * width) / cover)
- num_ = math.ceil(num_)
- print(f"{num_} cans of paint needed")
- #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)
Add Comment
Please, Sign In to add comment