At Westonci.ca, we connect you with experts who provide detailed answers to your most pressing questions. Start exploring now! Get expert answers to your questions quickly and accurately from our dedicated community of professionals. Join our platform to connect with experts ready to provide precise answers to your questions in different areas.

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):