Skip to content

Commit c38791b

Browse files
authored
Create temperature.py
0 parents  commit c38791b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

temperature.py

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Starting Out with Python (4th Edition).
2+
# Tony Gaddis.
3+
# Page 187.
4+
# Chemical Labs Inc.
5+
temperature = float(input("Read Temperature of Substance: "))
6+
7+
while temperature > 102.5:
8+
print("Turn Down Thermostat.")
9+
print("Wait for 5 minutes.")
10+
temperature = float(input("Read Temperature of Substance (After 5 minutes.): "))
11+
12+
print("Temperature is acceptable.")
13+
print("Check again after 15 minutes.")

0 commit comments

Comments
 (0)