-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathunit4_ex4.4.1.py
More file actions
26 lines (23 loc) · 763 Bytes
/
Copy pathunit4_ex4.4.1.py
File metadata and controls
26 lines (23 loc) · 763 Bytes
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
# exercise 4.4.1 from unit 4
# Match each piece of code with the output obtained when running it.
# 1:
temperature = float(input("What is the temperature? "))
if temperature < 0:
print("Brr... I need to find some penquins. to keep me company")
else:
print("Goodbye penquins!")
# Answer: error of kind IndentationError
# 2:
temperature = float(input("What is the temperature? "))
if temperature < 0
print("Brr... I need to find some penquins. to keep me company")
else:
print("Goodbye penquins!")
# Answer: error of kind SyntaxError
# 3:
temperature = float(input("What is the temperature? "))
if temperature < 0:
print("Brr... I need to find some penquins. to keep me company")
else:
print("Goodbye penquins!")
# Answer: what is the temperature?