Why is my function only splitting the last line in a data file?
Why is my function only splitting the last line in a data file? Question: I’m supposed to be writing a function that will read data from a .txt file and build a dictionary. The headers of the txt file will be the keys, and the values under each header will be values assigned to each …