Write a short program that uses a for loop to write the numbers 1 through 10 to a file
1 answer:
An example would be as follows: <span>outfile = open('filename.txt', 'w') for num in range (1, 11): outfile.write(str(num) + '\n') outfile.close() And a second example: </span><span>dataFile = open("filename", "w") for line in range(11): dataFile.write("%s\n" % line) dataFile.close<span>()</span></span><span> Hope this helps.</span>
You might be interested in
Check who you are sending it to before you hit send
If you delete selected cells using the Delete key on your keyboard, only the _______ of the cells is removed. Content
ACCUPLACER, I hope this helps :)
<span>Encapsulation is defined as the process of adding a header in front of data supplied by a higher layer (and possibly adding a trailer as well).</span>
Answer:
An SSL also provides protection from IP spoofing.