class Person:
def __init__(self, fname, lname, age, gender):
self.fname = fname
self.lname = lname
self.age = age
self.gender = gender
class Children(Person):
def __init__(self, fname, lname, age, gender, friends):
super().__init__(fname, lname, age, gender)
self.friends = friends
a100 = Children("a1", "a10", 17, "male", "a2 , a3 , a4 , a5")
a200 = Children("a2", "a20", 17, "male", "a5, a1, a4, a3 ")
a300 = Children("a3", "a30", 17 , "male", "a2, a1")
a400 = Children("a4", "a40", 17, "female", "a1, a2")
a500 = Children("a5", "a50", 16, "male", "a2, a1")
x = ["a100", "a300", "a500", "a200", "a400"]
for n in x:
print(n.age)