I want to know the process that code | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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

14th Dec 2017, 2:39 PM
Razka Agniatara
Razka Agniatara - avatar
1 Réponse
+ 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 :)
17th Dec 2017, 11:08 PM
Lysis
Lysis - avatar