Comment enregistrer les entrées Python

#this is a getname command for example

# Function gets name from user
def get_name():
    print("Hello what is your name?")
    name = input("My name is: ")
    print("Hello ", name)
    return name
  
#  you can use the name as a variable in prints
print(name, 'you did very well')
#pls upvote
kokzerius