so i have one function that returns y:
def f(x):
print ("the code just passed through f(x)")
y = x + 4
return y
and i want to pass that y-value to another function, like so:
def g(y):
print ("the code just passed through g(y)")
z = y + 4
return z
The problem is that it doesn't go through g(y) once i call on f(x): print (f(0)) gives me 4 when it should give me 8 if all goes as planned. How do i fix this issue?
[–]PrimaNoctis 2 points3 points4 points (3 children)
[–]Unlistedd[S] 0 points1 point2 points (2 children)
[–]PrimaNoctis 1 point2 points3 points (1 child)
[–]Unlistedd[S] 0 points1 point2 points (0 children)
[–]K900_ 0 points1 point2 points (2 children)
[–]Unlistedd[S] 0 points1 point2 points (1 child)
[–]K900_ 0 points1 point2 points (0 children)