Created directories for the chapters

This commit is contained in:
2022-01-08 20:58:38 +01:00
parent aecb16fe01
commit f83d307a1e
59 changed files with 0 additions and 0 deletions

15
kapitel7/sidan_116_ex1.py Normal file
View File

@@ -0,0 +1,15 @@
konton = {"Kalle": 300, "Joakim": 1800, "Lisa": 900}
hogst = 0
rikast = str()
for i, j in konton.items():
print(i, j)
if (hogst == 0):
hogst = j
rikast = i
if (j > hogst):
hogst = j
rikast = i
print (rikast, "är rikast!")