You are on page 1of 1

import random

print("Hello reader")
name = input("What is your name?")
print("Hello "+ name)
gender = input ("Are you a male or female?")
print("You are a " + gender)
day = input ("What day of the week is it?")
print ("Toady is " + day)
if gender == "girl":
pronoun = "she"
elif gender == "boy":
pronoun = "he"
else:
pronoun = "it"
names = ["Ben", "Dave", "Liz", "Alex", "Rachel", "Clive", "Eben"]
roles = ["knight", "Princess", "prince", "frog", "wizard", "ogre"]
actions = ["slay", "kiss", "save", "marry", "rescue", "eat"]
places = ["Computopia", "Turingville", "Digotopolis", "Bool Cool"]
actor_name = random.choice(names)
actor_role = random.choice(roles)
quest = random.choice(actions)
magic_place = random.choice(places)
story = "Once upon a time, there was a " + actor_role + " called " + name + ". " + pronoun + " and some friends
found themselves in the magic land of " + magic_place + ". This land was ruled by " + actor_name + " the " +
actor_role + ". All of a sudden a mysterious voice spoke to them from high in the sky and said you must " + quest +
" " + actor_name + " the " + actor_role + " to lift the curse of not being able to use technology...."
print (story)

You might also like