python adventure game 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
# Function gets name from user
def get_name():
print("Hello what is your name?")
name = input("My name is: ")
print("Hello ", name)
return name