Message6399
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) |
|
Date |
User |
Action |
Args |
2019-03-15 10:51:24 | When in trouble, go to the library | set | messageid: <1552647084.28.0.6748349462.issue2551031@roundup.psfhosted.org> |
2019-03-15 10:51:24 | When in trouble, go to the library | set | recipients:
+ When in trouble, go to the library |
2019-03-15 10:51:24 | When in trouble, go to the library | link | issue2551031 messages |
2019-03-15 10:51:24 | When in trouble, go to the library | create | |
|