Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- import csv
- with open('groups.csv', 'r') as csvfile:
- reader = csv.DictReader(csvfile, ['full','acrnm','leader'])
- names = [club['acrnm'] if club['acrnm'] != '' else club['full'] for club in reader]
- [print(name) for name in names]
Add Comment
Please, Sign In to add comment