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

12
kapitel7/sidan_124_ex1.py Normal file
View File

@@ -0,0 +1,12 @@
antal = 0
summa = 0
while True:
x = input("Ange tal: ")
if (x == "klar"):
break
x = float(x)
summa = summa + x
antal = antal + 1
print ("Medelvärdet är %.1f" %(summa/antal))