Initial commit
This commit is contained in:
commit
a1ddfdb7c0
14 changed files with 599 additions and 0 deletions
11
exercise_1/task2.py
Normal file
11
exercise_1/task2.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
def g(x):
|
||||
return (x + x)
|
||||
|
||||
def f(x):
|
||||
if (x < 0):
|
||||
d = 0
|
||||
if (x == 0):
|
||||
d = 1
|
||||
else:
|
||||
d = g(f((x - 1)))
|
||||
return d
|
||||
Loading…
Add table
Add a link
Reference in a new issue