Skip to content

Commit 64cb692

Browse files
committed
Update and add Cyclone solutions
1 parent f64b77f commit 64cb692

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

3-control-flow/15_the_cyclone_1.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# The Cyclone 🎢
2+
# Codédex
3+
4+
height = 250
5+
credits = 10
6+
with_taller_person = False
7+
8+
if height >= 137 and credits >= 10:
9+
print("Enjoy the ride!")
10+
elif height < 137:
11+
print("You are not tall enough to ride.")
12+
elif credits < 10:
13+
print("You don't have enough credits to ride.")
14+
else:
15+
print("Invalid data.")

3-control-flow/15_the_cyclone.py renamed to 3-control-flow/15_the_cyclone_2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
print("Enjoy the ride!")
1616

1717
if credits < 10:
18-
print("You don't have enough credits to ride.")
18+
print("You don't have enough credits to ride.")

0 commit comments

Comments
 (0)