PYTHON PROGRAMMING ONLY. Provide explanation as well. Thank You Part 1) Write a program that creates a file called readm
Posted: Tue Apr 12, 2022 10:20 am
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
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