Verzeichnis für teil28
This commit is contained in:
20
teil28/static.py
Normal file
20
teil28/static.py
Normal file
@@ -0,0 +1,20 @@
|
||||
# Datei static.py
|
||||
|
||||
class Math():
|
||||
|
||||
@staticmethod
|
||||
def add(x,y):
|
||||
return x+y
|
||||
|
||||
@staticmethod
|
||||
def sub(x,y):
|
||||
return x-y
|
||||
|
||||
@staticmethod
|
||||
def mul(x,y):
|
||||
return x*y
|
||||
|
||||
|
||||
print(f'Add: {Math.add(3,2)}')
|
||||
print(f'Sub: {Math.sub(3,2)}')
|
||||
print(f'Mul: {Math.mul(3,2)}')
|
Reference in New Issue
Block a user