Message6413
MAYBE PYTHON JUST DOESN'T GET f IS SUPPOSED TO BE A FUNCTION
LET'S TRY
#def beliebige_funktion(): define function f here
# f() = beliebige_funktion assign function f to f
#Test
def print_doof():
print('doof')
f() = print_doof()
def mach_n(f,n):
if n <= 0:
return
f()
mach_n(f,n-1)
mach_n(f,6)
RUN MODULE
MESSAGE: SYNTAX ERROR. CAN'T ASSIGN f() = print_doof()
TO FUNCTION CALL |
|
Date |
User |
Action |
Args |
2019-03-22 11:27:07 | When in trouble, go to the library | set | messageid: <1553254027.87.0.443529359916.issue2551031@roundup.psfhosted.org> |
2019-03-22 11:27:07 | When in trouble, go to the library | set | recipients:
+ When in trouble, go to the library |
2019-03-22 11:27:07 | When in trouble, go to the library | link | issue2551031 messages |
2019-03-22 11:27:07 | When in trouble, go to the library | create | |
|