We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e34d01 commit 0e425c5Copy full SHA for 0e425c5
Generic programming/Exercise/009.py
@@ -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
Generic programming/Exercise/010.py
@@ -1,4 +1,11 @@
+x = 10
+y = 5
+z = 2
-name = "kamau"
+smallest = x # Assume x is the smallest initially
+if y < smallest:
+ smallest = y
+if z < smallest:
+ smallest = z
-print(name[:4])
11
+print(smallest) # Output will be 2, as z is the smallest
0 commit comments