Question: Python 3.6 Write code that does the following: opens an output file number list.txt, uses a loop to write the numbers 1 through 100 to
Python 3.6

Write code that does the following: opens an output file number list.txt, uses a loop to write the numbers 1 through 100 to the file and then closes the file. Write code that does the following: opens the number list.txt file that was created by the code you wrote in question 1, reads all of the numbers from the file and displays them, and then closes the file. Modify the code that you wrote in question 2 so it adds all of the numbers read from the file and displays their total Write code that opens an output file with the filename number list.txt, but does not erase the file's contents if it already exists. A file exists on the disk named students.txt. The file contains several records, and each record contains two fields: (1) the student's name, and (2) the student's score for the final exam. Write code that deletes the record containing "John Perz" as the student name A file exists on the disk named students txt. The file contains several records, and each record contains two fields: (1) the student's name, and (2) the student's score for the final exam. Write code that changes Julie Milan's score to 100
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
