Skip to content

Commit 5a5f81e

Browse files
committed
More fixes
1 parent 4e4de92 commit 5a5f81e

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

python-first-steps/conditionals.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
age = 21
2+
23
if age >= 18:
34
print("You're a legal adult")
45

56
age = 16
7+
68
if age >= 18:
79
print("You're a legal adult")
810
else:
911
print("You're NOT an adult")
1012

1113
age = 18
14+
1215
if age > 18:
1316
print("You're over 18 years old")
1417
elif age == 18:
1518
print("You're exactly 18 years old")
16-

python-first-steps/while_loops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
count = 1
2+
23
while count < 5:
34
print(count)
45
count += 1
56
else:
67
print("The loop wasn't interrupted")
7-

0 commit comments

Comments
 (0)