Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import csv
- with open('mystates.csv', newline='') as csvfile:
- data = csv.DictReader(csvfile)
- print("Baby_Names")
- print("---------------------------------")
- for row in data:
- print(row['name'], row['rank'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement