i am given an open file in the form of, key serperator value, its not just 1 line but many lines in that form. what the objective is is that i have to convert the open file into a dictionary where the output should be {key : value}, and the seperator is where it splits it up into both values.
for example:
File:
abc def ghj
jkl def jkk
uio def asd
the output should be :{"abc": "ghj" , "jkl" : "jkk", "uio" : "asd"}
and the parameters should be:
def file_to_dict(file, seperator)
How would i write a file like this any hints?