Roundup Tracker - Issues

Message6410

Author When in trouble, go to the library
Recipients When in trouble, go to the library
Date 2019-03-22.11:08:50
Message-id <1553252930.14.0.500944326911.issue2551031@roundup.psfhosted.org>
In-reply-to
def mach_n(f,n):
    if n <= 0:
        return
    f
    mach_n(f,n-1)

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

#Test

def print_doof():
    print('doof')

f=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 
doof
>>> 

DID I MISS SOMETHING IN COMPARING?
History
Date User Action Args
2019-03-22 11:08:50When in trouble, go to the librarysetmessageid: <1553252930.14.0.500944326911.issue2551031@roundup.psfhosted.org>
2019-03-22 11:08:50When in trouble, go to the librarysetrecipients: + When in trouble, go to the library
2019-03-22 11:08:50When in trouble, go to the librarylinkissue2551031 messages
2019-03-22 11:08:50When in trouble, go to the librarycreate