print_slow()
returns None
which you pass to the input()
function. That function uses that argument as the prompt to show the user when asking for input:
>>> input(None)
None
None
is the default return value of any function, unless you give it an explicit return value with a return
statement, which your function lacks.
Call input()
separately, you don't have to give it a prompt to print:
print_slow("
What is your name? (EASTER EGG CODE: "blackbeard")
>>")
s_name = input()
The str()
call is redundant, in Python 3, input()
returns a string, always.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…