Lagt till kapitel 9

This commit is contained in:
2024-02-03 19:22:27 +01:00
parent 0983e93cbe
commit accdeca47b
24 changed files with 245 additions and 0 deletions

15
kapitel9/omfang-ex3.py Normal file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env python3
y = 8
def kvadrat(x):
print("Globalt y = ", y)
return x**2
def kub(z):
print("Globalt y = ", y)
return z**3
print(kvadrat(5))
print(kub(5))