To expand on the comments above, I think you'd want something more like this:
# Define the user class - what data do we store about users:
class User(object):
def __init__(self, user_name, first_pet):
self.user_name = user_name
self.first_pet = first_pet
# Now gather the actual list of users
users = []
while someCondition:
user_name, first_pet = getUserDetails()
users.append(User(user_name, first_pet))
# Now we can use it
print "The first users name is:"
print users[0].user_name
So you're defining the class (think of it as a template) for the Users, then creating new User objects, one for each person, and storing them in the users
list.