Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 02f9900

Browse filesBrowse files
authored
Update 15_the_cyclone_2.py
1 parent c64f9e9 commit 02f9900
Copy full SHA for 02f9900

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed

‎3-control-flow/15_the_cyclone_2.py

Copy file name to clipboardExpand all lines: 3-control-flow/15_the_cyclone_2.py
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77

88
if height >= 137 and credits >= 10:
99
print("Enjoy the ride!")
10-
11-
if height < 137:
10+
elif height < 137:
1211
if height < 100 or not with_taller_person:
1312
print("You're not tall enough for this ride yet.")
1413
elif height >= 100 and with_taller_person:
1514
print("Enjoy the ride!")
16-
17-
if credits < 10:
18-
print("You don't have enough credits to ride.")
15+
elif credits < 10:
16+
print("You don't have enough credits to ride.")
17+
else:
18+
print("Invalid data.")

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.