Hi there, everyone! I was wondering... How would I go about writing a script that creates a dictionary from a file?
EXAMPLE FILE:
I want to turn a file like that into a dictionary. Example:
How would I do this? Thanks a lot for your help!
EXAMPLE FILE:
Code:
google start http://www.google.com yahoo start http://www.yahoo.com c drive start "C:\"
Code:
{'google': 'start http://www.google.com', 'yahoo': 'start http://www.yahoo.com', 'c drive': 'start "C:\"'}
Comment