May-14-2019, 12:39 PM
@go127a, please read carefully and follow what you are told to do
if you want to first process all of the input file and only then to write to file, then you need to come up with a structure like this
(May-07-2019, 06:22 PM)buran Wrote: you need to open a file for reading and a file for writing (2 files)
read line by line from the input file.
using the hash from the file and the rainbow dict - find the password
write the name (from input file) and the password (from the dict) to output file
continue with the next line
if you want to first process all of the input file and only then to write to file, then you need to come up with a structure like this
[['danial', '5104'], ['elham', '9770']]
, i.e. list of lists and then pass this data structure to writer.writerows()
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs