This may help you get started:
class Animal(object):
def __init__(self, Name, Age, Species, Gender):
self.name = Name
self.age = Age
self.species = Species
self.gender = Gender
li = ['George', '23', 'Monkey', 'Male', 'Mike', '31', 'Racoon', 'Male']
first_animal = Animal(*li[0:4])
second_animal = Animal(*li[4:])
print("""
First Animal is:
gender: {0.gender}
age: {0.age}
name: {0.name}
species: {0.species}""".format(first_animal))
Outputs:
First Animal is:
gender: Male
age: 23
name: George
species: Monkey
A brief explanation, "chunking of the list" can be done many ways, I just chose to use the *
, splat operator, and slice the contents.
Instantiating objects from the class was borrowed from this tutorial Learn Python the Hard Way, bottom of the page "A First Class Example".
I didn't put these new class objects into a new list, but as everything in python is an object, and you know how to create lists as you did in your question, I'll leave that trivial part out.
Hope this helps.