Write code that does the following: opens a file named NumberList.txt, uses a loop to write the

Question:

Write code that does the following: opens a file named NumberList.txt, uses a loop to write the numbers 1 through 100 to the file, and then closes the file.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: