<filename>program_structure/read_prices.py
import os

dir_path  = os.path.dirname(os.path.realpath(__file__))
FILE_PATH = f'{dir_path}/../../data/shares.csv'

def read_prices(filename: str) -> dict:

    result = {}

    with open(filename, 'rt') as file:
        next(file) # skip header
        for line in file:
            parsed_line = line.strip().split(',')
            result[parsed_line[0]] = float(parsed_line[2])

    return result

res = read_prices(FILE_PATH)
print(res)