[Solved] How to convert txt to dictionary in python [closed]
I’ve added comments to the answer to explain the flow, please add more details in your question if this is not clear enough 🙂 # Open file for reading file_house_price = open(“house_price.txt”, “r”) # read all lines from the file into a variable data_house_price = file_house_price.readlines() # as we’re done with the file, we can … Read more