text adventure game python 3 one file code example
Example: python naming script text game
# Function gets name from user
def get_name():
print("Hello what is your name?")
name = input("My name is: ")
print("Hello ", name)
return name