Skip to content

Instantly share code, notes, and snippets.

@RaMSFT
Created October 18, 2022 07:00
Show Gist options
  • Save RaMSFT/a27111b6f582f091580d0fc0f44362bb to your computer and use it in GitHub Desktop.
Save RaMSFT/a27111b6f582f091580d0fc0f44362bb to your computer and use it in GitHub Desktop.
def how_many_walls(paint_area, width, height):
area_of_wall = width * height
times = paint_area // area_of_wall
return times
print(how_many_walls(100, 4, 6))
print(how_many_walls(100, 4, 5))
print(how_many_walls(10, 15, 12))
print(how_many_walls(41, 3, 6))
print(how_many_walls(1000, 42, 16))
print(how_many_walls(1230, 47, 6))
print(how_many_walls(1003, 4, 67))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment