hello,
2 of them are not realy work, how can i make my funktion visible(the result)?
I do some stuff from https://oceanpython.org/
KR
AnderasPython_basics.dyn (23.1 KB)
hello,
2 of them are not realy work, how can i make my funktion visible(the result)?
I do some stuff from https://oceanpython.org/
KR
AnderasPython_basics.dyn (23.1 KB)
You have to “return” a value from the definition. See this as an example.
Also, you are not actually calling the function, so even if you return a value in your definition for the function, it will not appear in your output. If you do this:
def hello():
return "Hello, World!"
OUT = hello()
It will return "Hello, World!"
. If you do this:
def hello(i):
return i
OUT = hello("Hello, World!")
It will also return “Hello, World!”