people = [('A', 'B', 12), ('C', 'D', 56), ('E', 'F', None), ('G', 'H', 90), ('I', 'J', 67)]
avg = 0
for tup in people:
    if tup[2] is not None:
        avg += tup[2]
avg = avg / len(people)


for person in people:
    if person[2] is not None:
        if person[2] > avg:
            print(person[0], " is old.")
        else:
            print(person[0], " is young.")

f130cf603a94a97bafa31e4ada9acef2726ad8e9
<mask token>

<mask token>
for tup in people:
    if tup[2] is not None:
        avg += tup[2]
<mask token>
for person in people:
    if person[2] is not None:
        if person[2] > avg:
            print(person[0], ' is old.')
        else:
            print(person[0], ' is young.')

people = [('A', 'B', 12), ('C', 'D', 56), ('E', 'F', None), ('G', 'H', 90),
    ('I', 'J', 67)]
avg = 0
for tup in people:
    if tup[2] is not None:
        avg += tup[2]
avg = avg / len(people)
for person in people:
    if person[2] is not None:
        if person[2] > avg:
            print(person[0], ' is old.')
        else:
            print(person[0], ' is young.')

people = [('A', 'B', 12), ('C', 'D', 56), ('E', 'F', None), ('G', 'H', 90), ('I', 'J', 67)]
avg = 0
for tup in people:
    if tup[2] is not None:
        avg += tup[2]
avg = avg / len(people)


for person in people:
    if person[2] is not None:
        if person[2] > avg:
            print(person[0], " is old.")
        else:
            print(person[0], " is young.")
