Skip to content

Commit bfb7db0

Browse files
committed
inmplement credits condition in challenge 15 solution
1 parent 0113dd8 commit bfb7db0

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
# Cyclone Coaster 🎢
22
# Codédex
33

4-
myHeight = 150
4+
myHeight = 250
5+
credits = 9
56
withTallerPerson = False
67

7-
if myHeight >= 200:
8+
if myHeight >= 200 and credits >= 10:
9+
breakpoint()
810
print("Enjoy the ride!")
911

1012
if myHeight < 200:
1113
if myHeight < 100 or not withTallerPerson:
14+
breakpoint()
1215
print("You're not tall enough for this ride yet.")
1316
elif myHeight >= 100 and withTallerPerson:
14-
print("Enjoy the ride!")
17+
breakpoint()
18+
print("Enjoy the ride!")
19+
20+
if credits < 10:
21+
print("You don't have enough credits to ride.")

0 commit comments

Comments
 (0)