Guest User

Untitled

a guest
Sep 18th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #!/usr/bin/env python3
  2. import csv
  3.  
  4. with open('groups.csv', 'r') as csvfile:
  5. reader = csv.DictReader(csvfile, ['full','acrnm','leader'])
  6. names = [club['acrnm'] if club['acrnm'] != '' else club['full'] for club in reader]
  7.  
  8. [print(name) for name in names]
Add Comment
Please, Sign In to add comment