Skip to content

Commit c740678

Browse files
committed
Add sears.py
1 parent 6c706a7 commit c740678

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Work/sears.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# sears.py
2+
bill_thickness = 0.11 * 0.001 # Meters (0.11 mm)
3+
sears_height = 442 # Height (meters)
4+
num_bills = 1
5+
day = 1
6+
7+
while num_bills * bill_thickness < sears_height:
8+
print(day, num_bills, num_bills * bill_thickness)
9+
day = day + 1
10+
num_bills = num_bills * 2
11+
12+
print('Number of days', day)
13+
print('Number of bills', num_bills)
14+
print('Final height', num_bills * bill_thickness)

0 commit comments

Comments
 (0)