Skip to content

Commit 0e425c5

Browse files
committed
minor changes
1 parent 3e34d01 commit 0e425c5

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
hours_worked = 200
3+
4+
if hours_worked > 40:
5+
worked_overtime = True
6+
print(worked_overtime)
7+
8+
else:
9+
worked_overtime = False
10+
print(worked_overtime)
Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1+
x = 10
2+
y = 5
3+
z = 2
14

2-
name = "kamau"
5+
smallest = x # Assume x is the smallest initially
6+
if y < smallest:
7+
smallest = y
8+
if z < smallest:
9+
smallest = z
310

4-
print(name[:4])
11+
print(smallest) # Output will be 2, as z is the smallest

0 commit comments

Comments
 (0)