0
I want to know the process that code
I found this on Stack Overflow: y = {} with open("stuff.txt", "r") as infile: for line in infile: key, value = line.strip().split(':') y[key] = (value) print(y) tell me more in the section this... key, value = line.strip().split(':') i really noob https://stackoverflow.com/questions/30020707/JUMP_LINK__&&__python__&&__JUMP_LINK-how-to-convert-lines-in-a-txt-file-to-dictionary-elements
1 Resposta
+ 1
I'm guessing from the URL that it's basically breaking a string into individual characters.
the best way to see what a code does is to run it :)