Feb-20-2019, 09:07 AM
enumerate takes optional
start
argument. So you can writewith open("Result.txt") as f: for i, line in enumerate(f, start=1): with open(f"{i}.txt", "w") as g: g.write(line)
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