# PersonArray1 Example # Create and print an array that # contains Person objects. from person import Person p1 = Person("Alice", "F", 11) p2 = Person("David", "M", 13) p3 = Person("Scott", "M", 9) p4 = Person("Chloe", "F", 8) a = [ ] a.append(p1) a.append(p2) a.append(p3) a.append(p4) # Printing the array like this # does not give much information: print(a) # This is a better way to print # the array: for p in a: print(p)