Roundup Tracker - Issues

Message6399

Author When in trouble, go to the library
Recipients When in trouble, go to the library
Date 2019-03-15.10:51:24
Message-id <1552647084.28.0.6748349462.issue2551031@roundup.psfhosted.org>
In-reply-to
TEST
HYPOTHESIS: I HAVE TO DEFINE THE FUNCTION BEFORE ASSIGNING IT TO F

#def beliebige_funktion():  define function f here
    
# f = beliebige_funktion    assign function f to f

#Test

f=print_doof()

def print_doof():
    print('doof')


mach_n(f,6)

RUN MODULE

RESTART: C:\Users\Henrike
Schwenn\Roaming\Programs\Python\Python36\eigene Funktionen\rekursive
Funktionen\mach_n mit Funktionsobjekt.py 
Traceback (most recent call last):
  File "C:\Users\Henrike Schwenn\Roaming\Programs\Python\Python36\eigene
Funktionen\rekursive Funktionen\mach_n mit Funktionsobjekt.py", line 19,
in <module>
    f=print_doof()
NameError: name 'print_doof' is not defined
>>> 
TYPE: SYNTAX
HYPOTHESIS: I FORGOT TO FIX THE ORDER OF DEFINITIONS WHEN ACTUALLY
CALLING UP THE FUNCTION X)
History
Date User Action Args
2019-03-15 10:51:24When in trouble, go to the librarysetmessageid: <1552647084.28.0.6748349462.issue2551031@roundup.psfhosted.org>
2019-03-15 10:51:24When in trouble, go to the librarysetrecipients: + When in trouble, go to the library
2019-03-15 10:51:24When in trouble, go to the librarylinkissue2551031 messages
2019-03-15 10:51:24When in trouble, go to the librarycreate