I would like to place a function at the end of a script which is used in the script. This, of course, does not work as the function is not known yet. Can I therefore import this funtion in the same script?
If I do it like the following, I get the error " ImportError: cannot import name:'subfunction' "
from the_script_in_use import subfuction
a=subfunction(b)
def subfunction(value)
do something
return a