Py basics

from csv import reader
fp = open('file_name.csv', encoding='utf-8')
data = list(reader(fp))
fp.close()
for key in sorted(my_dict, key=my_dict.get):

    print('{} : {}'.format(key, my_dict[key]))
x=[]
y=[]
for key, value in genres.items():
    x.append(key)
    y.append(value)

Similiar Collections