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
mestny [16]
3 years ago
7

Write a program that will open a file named thisFile.txt and write every other line into the file thatFile.txt. Assume the input

file (thisFile.txt) resides in the same directory as your code file, and that your output file (thatFile.txt) will reside in the same location. Do not attempt to read from or write to other locations.
Computers and Technology
1 answer:
Naily [24]3 years ago
4 0

Answer:

Check the explanation

Explanation:

The programmable code to solve the question above will be written in a python programming language <u><em>(which is a high-level, interpreted, general-purpose programming language.)</em></u>

<u><em /></u>

f = open('thisFile.txt', 'r')

w = open('thatFile.txt', 'w')

count = 0

for line in f:

   if count % 2 == 0:

       w.write(line)

   count += 1

w.close()

f.close()

You might be interested in
The mouse and keyboard are also sometimes called
likoan [24]
Hi!

The mouse and the keyboard are <em>input devices. </em>By using them, we can input data which will give us a (hopefully) desired output!

For example...

Just by using my keyboard to type, I'm inputting data in the form of ASCII characters and symbols.

By using my mouse to click on an area so I can move this sentence on a new line, I had to input a request to do such!

Hopefully, this helps! =)
7 0
4 years ago
If a question on a job application does not apply to you, simply write
bonufazy [111]
Your answer your looking for is letting D because you don’t know it or it don’t have anything to do with you...
3 0
4 years ago
Read 2 more answers
What is a half note + a 8th note in band? plz helppp
skad [1K]
One quarter note plus one eighth note equals one and a half beats. So a dotted quarter note lasts for one and a half beats.
3 0
3 years ago
Read 2 more answers
Is an example of a relational database management system? (ORACLE ,SQL,JAVA,Python)
olganol [36]

Answer:

The correct answer for the given question is "ORACLE ".

Explanation:

ORACLE is an relational database management system oracle can store the interrelated data .Oracle database management system is used for online transaction etc .It is first company in Relational database management System.

SQL is an structural query language it is used to communicate with a database it is not relational database management system so this option is wrong.

Java and python are the programming language they are not relational database management system so this option is wrong.

So correct answer is "ORACLE "

6 0
3 years ago
Type the correct answer in the box. Spell all words correctly. Define the term semiconductor. A semiconductor is a material that
Katena32 [7]

Answer:

conductor

A semiconductor is a material that can carry an electric current between a conductor and an insulator.

4 0
3 years ago
Other questions:
  • All waves consist of a continuous series of _____.
    11·2 answers
  • Which is an example of a local government enforcing a national law?
    5·2 answers
  • Why have the 'taskmasters' been answering questions so long but they're still only at the ambitious rank?
    14·1 answer
  • On the server side, the database environment must be properly configured to respond to clients' requests in the fastest way poss
    12·1 answer
  • Write a program that:
    13·1 answer
  • 1. What does a network allow computers to share?
    13·1 answer
  • Write a for loop that prints the values 1 2 4 8 16 32 64 by increasing the value of a counting variable by a factor of two in ea
    15·1 answer
  • Which of the following is not a Nintendo game character?
    6·2 answers
  • Assume you are a security professional. You are determining which of the following backup strategies will provide the best prote
    10·1 answer
  • What does Technology mean to you?​
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!