PYTHON PROGRAMMING ONLY. Provide explanation as well.
Thank You
Part 1) Write a program that creates a file called readme.txt.
Write each letter of the alphabet on its own line and then close
that file.
Part 2) Have the program then open that file to read. The
program should display the contents of the file with each line
preceded with a line number followed by a colon. The line numbering
should start at 1. For example:
1: a
2: b
PYTHON PROGRAMMING ONLY. Provide explanation as well. Thank You Part 1) Write a program that creates a file called readm
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am