Skip to content
Snippets Groups Projects
Commit 20d84c4e authored by Markus Opolka's avatar Markus Opolka
Browse files

Add solutions to aufg1

parent ea0c786e
Branches
No related tags found
No related merge requests found
...@@ -4,8 +4,17 @@ ...@@ -4,8 +4,17 @@
import sys import sys
def multiply(x, y): def mul(x, y):
pass return x * y
def add(x, y):
return x + y
def sub(x, y):
return x - y
def div(x, y):
return x / y
def main(args): def main(args):
......
#!/usr/bin/env python3 #!/usr/bin/env python3
import math
def calc_area(r): def calc_area(r):
pass return math.pi * (r ** 2)
def main(): def main():
......
...@@ -5,7 +5,11 @@ import sys ...@@ -5,7 +5,11 @@ import sys
def tokenize(string): def tokenize(string):
pass
string = string.replace(".", " . ")
string = string.split()
return string
def main(args): def main(args):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment