-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLab1of2.py
More file actions
21 lines (13 loc) · 728 Bytes
/
Lab1of2.py
File metadata and controls
21 lines (13 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#Quiz: Calculate
#In this quiz you're going to do some calculations for a tiler. Two parts of a floor need tiling. One part is 9 tiles wide by 7 tiles long, the other is 5 tiles wide by 7 tiles long. Tiles come in packages of 6.
#1. How many tiles are needed?
#2. You buy 17 packages of tiles containing 6 tiles each. How many tiles will be left over?
first_part = 9 * 7
second_part = 5 * 7
total_tiles_needed = first_part + second_part
total_tiles_bought = 17 * 6
left_over = total_tiles_bought - total_tiles_needed
# Fill this in with an expression that calculates how many tiles are needed.
print(total_tiles_needed)
# Fill this in with an expression that calculates how many tiles will be left over.
print(left_over)