"""luciola7 work1"""
import os
py_path = os.path.dirname(os.path.abspath(__file__))

input_file = py_path + "/nameslist.txt"

with open(input_file) as f:
    NAME_LIST = f.readlines()
    NAME_COUNT = {}
    for name in NAME_LIST:
        if name[:-1] in NAME_COUNT:
            NAME_COUNT[name[:-1]] += 1
        else:
            NAME_COUNT[name[:-1]] = 1
    print(NAME_COUNT)

4460a03f58b275f2f372df9969b7142fd4cfa675
<mask token>

<mask token>
with open(input_file) as f:
    NAME_LIST = f.readlines()
    NAME_COUNT = {}
    for name in NAME_LIST:
        if name[:-1] in NAME_COUNT:
            NAME_COUNT[name[:-1]] += 1
        else:
            NAME_COUNT[name[:-1]] = 1
    print(NAME_COUNT)

<mask token>
py_path = os.path.dirname(os.path.abspath(__file__))
input_file = py_path + '/nameslist.txt'
with open(input_file) as f:
    NAME_LIST = f.readlines()
    NAME_COUNT = {}
    for name in NAME_LIST:
        if name[:-1] in NAME_COUNT:
            NAME_COUNT[name[:-1]] += 1
        else:
            NAME_COUNT[name[:-1]] = 1
    print(NAME_COUNT)

<mask token>
import os
py_path = os.path.dirname(os.path.abspath(__file__))
input_file = py_path + '/nameslist.txt'
with open(input_file) as f:
    NAME_LIST = f.readlines()
    NAME_COUNT = {}
    for name in NAME_LIST:
        if name[:-1] in NAME_COUNT:
            NAME_COUNT[name[:-1]] += 1
        else:
            NAME_COUNT[name[:-1]] = 1
    print(NAME_COUNT)

"""luciola7 work1"""
import os
py_path = os.path.dirname(os.path.abspath(__file__))

input_file = py_path + "/nameslist.txt"

with open(input_file) as f:
    NAME_LIST = f.readlines()
    NAME_COUNT = {}
    for name in NAME_LIST:
        if name[:-1] in NAME_COUNT:
            NAME_COUNT[name[:-1]] += 1
        else:
            NAME_COUNT[name[:-1]] = 1
    print(NAME_COUNT)
