Roundup Tracker - Issues

Message6380

Author When in trouble, go to the library
Recipients When in trouble, go to the library
Date 2019-03-08.11:20:19
Message-id <1552044019.93.0.780862314018.issue2551028@roundup.psfhosted.org>
In-reply-to
PUTTING PARENTHESES AROUND S

def print_n(s,n):
    if n <=0:
        return
    print (s)
    print_(s,n-1)


print_n(s,n)

RUN MODULE

 RESTART: C:/Users/Henrike
Schwenn/Roaming/Programs/Python/Python36/eigene Funktionen/rekursive
Funktionen/Test print_n(s,n) - Downey S. 58.py 
Traceback (most recent call last):
  File "C:/Users/Henrike Schwenn/Roaming/Programs/Python/Python36/eigene
Funktionen/rekursive Funktionen/Test print_n(s,n) - Downey S. 58.py",
line 11, in <module>
    print_n(s,n)
NameError: name 's' is not defined
>>> 

TYPE: SYNTAX
History
Date User Action Args
2019-03-08 11:20:19When in trouble, go to the librarysetmessageid: <1552044019.93.0.780862314018.issue2551028@roundup.psfhosted.org>
2019-03-08 11:20:19When in trouble, go to the librarysetrecipients: + When in trouble, go to the library
2019-03-08 11:20:19When in trouble, go to the librarylinkissue2551028 messages
2019-03-08 11:20:19When in trouble, go to the librarycreate