May-02-2020, 07:08 PM
Hi All
I think I'm nearly there with the code:
password12345678910111213, etc
What I'm looking to achieve is the below:
password1password2password3, etc.
Thank you
I think I'm nearly there with the code:
f = open("file.txt", "rt") s = f.read() f = open("new-file.txt", "wt") for count in range(1,201): s+=str(count) print({s},{count}) f.write(s) f.close()However, its printing the string within the file followed by the count, for example its writing to the new-file like this:
password12345678910111213, etc
What I'm looking to achieve is the below:
password1password2password3, etc.
Thank you