Roundup Tracker - Issues

Message6398

Author When in trouble, go to the library
Recipients When in trouble, go to the library
Date 2019-03-15.10:45:43
Message-id <1552646743.31.0.282608936308.issue2551031@roundup.psfhosted.org>
In-reply-to
CHANGE INDENTION OF BODY 'print('doof')'

#Test

f=print_doof()

def print_doof():
    print('doof')


mach_n(f,6)

RUN MODULE

Traceback (most recent call last):
  File "C:\Users\Henrike Schwenn\Roaming\Programs\Python\Python36\eigene
Funktionen\rekursive Funktionen\mach_n mit Funktionsobjekt.py", line 20,
in <module>
    f=print_doof()
NameError: name 'print_doof' is not defined
>>> 

TYPE: SYNTAX
HYPOTHESIS: I HAVE TO DEFINE THE FUNCTION BEFORE ASSIGNING IT TO F
History
Date User Action Args
2019-03-15 10:45:43When in trouble, go to the librarysetmessageid: <1552646743.31.0.282608936308.issue2551031@roundup.psfhosted.org>
2019-03-15 10:45:43When in trouble, go to the librarysetrecipients: + When in trouble, go to the library
2019-03-15 10:45:43When in trouble, go to the librarylinkissue2551031 messages
2019-03-15 10:45:43When in trouble, go to the librarycreate