B3- Write a Python program that reads the marks from a file named marks.txt and then increments each mark by 5 and saves the updated marks in a new file called updatedMarks.txt. You can assume that the marks are written on a separate line each in the marks.txt file. Finally, read the new marks from the new file and print them to the output screen.

icon
Related questions
Question

B3- Write a Python program that reads the marks from a file named marks.txt and then increments each mark by 5 and saves the updated marks in a new file called updatedMarks.txt. You can assume that the marks are written on a separate line each in the marks.txt file. Finally, read the new marks from the new file and print them to the output screen.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Stack operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.