1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
bazaltina [42]
4 years ago
11

Write a short program that uses a for loop to write the numbers 1 through 10 to a file

Computers and Technology
1 answer:
Kamila [148]4 years ago
5 0
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
One type of wire sequence commonly used for ethernet cables is called the ________ sequence
monitta

Answer:

100BaseT

Also called Fast Ethernet

Good luck...

8 0
3 years ago
You have been asked to install a WLAN for a small business. You centrally locate the WAP in a large room that contains about 15
sveticcg [70]

Answer:

interference

Explanation:

The most likely reason for the connectivity problems is interference. This interference can be caused by many factors but in this scenario the most likely factor would be the metal studs and all the metal used to create the ceiling/floor. Metal is a huge interference when it comes to wifi signals. Depending on the type of metal and the amount it can greatly diminish the signal strength or even completely prevent the signal from passing to it's destination, regardless of how close the destination device is located.

4 0
3 years ago
Given the availability of an ifstream object named input, write the other statements necessary to read an integer into a variabl
tatiyna

Answer:

input.open("rawdata");

input>>datum;

input.close();

Explanation:

ifstream objects maintain a filebuf object as their internal stream buffer, and perform operations like input/output on the available associated files.

In above statements.

                            input.open("rawdata");

  • The associated file named rawdata is opened.

                            input>>datum;

  • The integer from the file is read into already declared variable datum.

                             input.close();

  • Input stream is closed.
4 0
3 years ago
I forgot to tell it’s on Roblox for those who play and wanted to be friends and new ppl username is mosarider489
never [62]

Answer:.

Explanation:

.

8 0
3 years ago
Read 2 more answers
Multiple layers provide multiple road blocks for a ________.
Hatshy [7]

Individual or other words user and attackers

4 0
4 years ago
Other questions:
  • Where should fire extinguishers be stored on a boat?
    7·1 answer
  • Which subexpression will be solved first in the given statement?
    8·1 answer
  • Which language is the most popular language for writing apple os x?
    9·1 answer
  • Which of the following Internet access methods involves connecting your phone to an Internet-ready laptop in order to gain acces
    14·2 answers
  • ________ consists of detailed, preprogrammed instructions that control and coordinate the computer hardware components in an inf
    11·1 answer
  • The following code in a different program is not working properly.The message should display the value of the intCounter variabl
    11·1 answer
  • What is the function of HTML?
    13·2 answers
  • What defines interactive media? The user must play a role in writing the content of the media. The user must do something that d
    6·2 answers
  • Identify the parts of it, Give at least three web browser that you usually used to visit a website.​
    10·1 answer
  • True or false: If you have a 32-bit CPU architecture, it's recommended to use a 64-bit operating system.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!