Lagt till kapitel 9
This commit is contained in:
15
kapitel9/omfang-ex3.py
Normal file
15
kapitel9/omfang-ex3.py
Normal 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))
|
||||
|
Reference in New Issue
Block a user