Q:

Defining a variable with pre-entered information

So I have this code but I want to make it so that once the persons details are entered i can insert they're name to retrieve their details for say a contact list or a reference for sending e-mails to people so I can remember who they are. e.g. Ill type someones full name (Jennifer Craig) and get a list of pre-entered details. Pleas help. 
                                                 Sincerely
                                                     Elemere
import time

def createIdentity():
    print ("Please Enter your details below")
    time.sleep(1)
    name = input("What is your name?")
    time.sleep(1)
    age = input("How old are you?")
    time.sleep(1)
    gender = input("Are you male or female?")

def recallIdentity():
    print("Your name is " + str(name) + "you are " + str(age) + "And you are a " +     str(gender) + "!")

createIdentity()
recallIdentity()

A:

I think you are looking for a dictionary. You can use this to store keys, and map values to them.
Demo- you could retrieve the values like this:
>>> contacts = {'Jennifer Craig': [30, Female], 'John Doe': [40, 'Male']}
>>> contacts['Jennifer Craig']
[30, Female]

And add them like this:
>>> name = 'Mark Smith'
>>> age = 25
>>> gender = 'Male'
>>> contacts[name] = [age, gender]
>>> contacts
{'Jennifer Craig': [30, Female], 'Mark Smith': [25, 'Male'], 'John Doe': [40, 'Male']}

