Question: Write a program that creates a file named lines.txt and writes 100 lines like this: Line #1 Line #2 Line #3 Line #4 ...
Write a program that creates a file named lines.txt and writes 100 lines like this:
Line #1
Line #2
Line #3
Line #4
...
Step by Step Solution
3.48 Rating (155 Votes )
There are 3 Steps involved in it
Certainly heres the complete Python code that creates a file named linestxt and writes 100 lines of text to it try with openlinestxt w as f for i in range1 101 fwritefLine i printFile created successf... View full answer
Get step-by-step solutions from verified subject matter experts
