text-based adventure game python source code 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