Skip to content

Commit 9b688fe

Browse files
authored
Merge pull request #98 from marilomf/patch-1
Fix bug in the example about elif statement
2 parents c13f77d + 113dae7 commit 9b688fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_episodes/17-conditionals.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ for mass in masses:
8989
~~~
9090
masses = [3.54, 2.07, 9.22, 1.86, 1.71]
9191
for mass in masses:
92-
if m > 9.0:
93-
print(m, 'is HUGE')
94-
elif m > 3.0:
92+
if mass > 9.0:
93+
print(mass, 'is HUGE')
94+
elif mass > 3.0:
9595
print(mass, 'is larger')
9696
else:
9797
print(mass, 'is smaller')

0 commit comments

Comments
 (0)