This function asks the name
def printName():
print("Enter your name: ")
n=input()
printName()
The if statement checks if n is equal to Python
if n=="Python":
print("Welcome")
else:
print("Try again")
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…