def build_attraction_dict():
    # write your code here for Task 1
    file = open("top tourist attractions.txt","r")
    list = file.read().split("\n")
    dic = {}
    for i in list:
        middle = i.find(",")
        key = i[0:middle]
        value = i[middle+1:]
        dic[key] = value
    print(dic)

build_attraction_dict()

3a208e2f05d583204f0c1b44a22c2b7214497239
<mask token>

def build_attraction_dict():
    file = open('top tourist attractions.txt', 'r')
    list = file.read().split('\n')
    dic = {}
    for i in list:
        middle = i.find(',')
        key = i[0:middle]
        value = i[middle + 1:]
        dic[key] = value
    print(dic)


<mask token>

def build_attraction_dict():
    file = open('top tourist attractions.txt', 'r')
    list = file.read().split('\n')
    dic = {}
    for i in list:
        middle = i.find(',')
        key = i[0:middle]
        value = i[middle + 1:]
        dic[key] = value
    print(dic)


build_attraction_dict()

def build_attraction_dict():
    # write your code here for Task 1
    file = open("top tourist attractions.txt","r")
    list = file.read().split("\n")
    dic = {}
    for i in list:
        middle = i.find(",")
        key = i[0:middle]
        value = i[middle+1:]
        dic[key] = value
    print(dic)

build_attraction_dict()
