Hello,
I try to learn more complex structures. But i still struggle…
def quad(x):
erg = x * x
return erg
# Funktion mit mehr als einem Parameter
def summe(a,b,c):
erg = a + b + c
return erg
# Funktion mit einem Parameter mehrmals aufrufen
z = map(quad, [4, 2.5, -1.5])
# Jedes Ergebnis ausgeben
x = []
for i in z:
x.append(i)
# Funktion mit mehr als einem Parameter mehrmals aufrufen
z = map(summe, [3, 1.2, 2], [4.8, 2], [5, 0.1, 9])
# Jedes Ergebnis ausgeben
y = []
for a in z:
y.append(a)
OUT = x,y
Can i write like this? Is there a missing library for these buildIn functions?
KR
Andreas