Westonci.ca offers quick and accurate answers to your questions. Join our community and get the insights you need today. Discover comprehensive answers to your questions from knowledgeable professionals on our user-friendly platform. Experience the ease of finding precise answers to your questions from a knowledgeable community of experts.

Write code that does the following: opens an output file with the filename number_ list.txt, uses a loop to write the numbers 1 through 100 to the file, then closes the file.

Sagot :

Answer:

6

Explanation:

# create the file

filemane= "Testfile.txt"

# for writing, we create the iutput file:

output = open(filename, "w")

#Writibg numbers from 1-100

for item in range 1,101):