#!/usr/bin/env python3 with open('people.csv', 'r') as fd: people = fd.readlines() # Only print the first 10 people names = list() for person in people: person = person.split(',') names.append(person[0]) print(person) # Sort and print names # Sort and print in reverse order # Shuffle names # Remove