By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,816 Members | 2,151 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,816 IT Pros & Developers. It's quick & easy.

how to add serial number in lines of a text file in python

P: 1
I have a txt file with many lines. I want to add a serial number and ':' in each line starting from the firtst line. For example:
I have: line1
end i want:
Jun 15 '17 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.