-
Notifications
You must be signed in to change notification settings - Fork 0
/
temp_guess.py
45 lines (34 loc) · 1.02 KB
/
temp_guess.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
"""
Homework 2: Where to live
===========================
Course: CS 5001
Semester: UPDATE
Student: YOUR NAME
An application that provides recommendations on where to live based on temp ranges.
"""
def main():
"""
Asks the client for two temperatures. Based on the values, it provides cities
that meets the conditions.
| City | High | Low |
| Beijing | 33 | -8 |
| Boston | 28 | -7 |
| Honolulu | 32 | 13 |
| San Francisco | 27 | 6 |
| Vancouver | 24 | 2 |
Values can be in any order.
Examples:
>>> main() # doctest: +NORMALIZE_WHITESPACE
Enter a temperature: 28
Enter a second temperature: -10
Boston
San Francisco
Vancouver
>>> main() # doctest: +NORMALIZE_WHITESPACE
Enter a temperature: 0
Enter a second temperature: 20
Unknown
"""
pass ## remove and put your code here
if __name__ == "__main__":
main()