Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

setdefault python

manga_names = {}
with open('manga_list.txt', 'r') as file:
    manga = file.readline()
    file.readline()
    manga_names.setdefault(manga, 0)
    manga_names[manga] += 1
 
PREVIOUS NEXT
Tagged: #setdefault #python
ADD COMMENT
Topic
Name
9+9 =