Skip to content

Commit 3e34d01

Browse files
committed
Exam preps
1 parent cf0a939 commit 3e34d01

File tree

6 files changed

+28
-1
lines changed

6 files changed

+28
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
11

2+
3+
principle = 3005
4+
divisor = 20
5+
6+
remainder = principle % divisor
7+
8+
print(remainder)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
width1 = 20
3+
length1 = 30
4+
5+
width2 = 10
6+
length2 = 15
7+
8+
9+
total_area = (width1 * length1) + (width2 * length2)
10+
11+
print(total_area)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
numbers = input("Enter 4 numbers: ")
2+
3+
reversed_numbers = numbers[::-1]
4+
5+
print(reversed_numbers)

Generic programming/Exercise/009.py

Whitespace-only changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
name = "kamau"
3+
4+
print(name[:4])

Kivy/home.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def build(self):
1313
self.theme_cls.primary_palette = "Green"
1414

1515
screen = Screen()
16-
16+
1717
# box_layout = MDBoxLayout(
1818
# orientation = "vertical",
1919
# spacing = 10,

0 commit comments

Comments
 (0)