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
coldgirl [10]
3 years ago
8

Suppose the Bookstore is processing an input file containing the titles of books in order to remove duplicates from their list.

Write a program that reads all of the titles from an input file called bookTitles.txt and writes them to an output file called noDuplicates.txt. When complete, the output files should contain all unique titles found in the input file.
Engineering
1 answer:
mash [69]3 years ago
6 0

Answer:

books = []

   fp = open("bookTitles.txt")

   for line in fp.readlines():

       title = line.strip()

       if title not in books:

           books.append(title)

   fp.close()

   fout = open("noDuplicates.txt", "w")

   for title in books:

       print(tile, file=fout)

   fout.close()

except FileNotFoundError:

   print("Unable to open bookTitles.txt")

You might be interested in
Is a diesel truck less expensive to drive than a gas truck?
MArishka [77]

Answer:

Typically, diesel trucks cost more than those with gas engines, especially when you're first buying them, as diesel is usually featured as an add-on for gas-powered cars. Diesel add-ons can cost over $5,000 for midsize trucks and around $10,000 for heavy-duty trucks.

Explanation:

Make me brain pls

3 0
2 years ago
Are the wooden pillars shown in the image below, a dead load?
Brrunno [24]

Answer:

no

Explanation:

it's not a dead load because when load is put on the pillars it's not fully straining it's been slowly getting to be heavier in that period of time before it falls

6 0
3 years ago
Rafel knows that lessons learned is a valuable aid to future projects. When should he and his team address
Arada [10]

Answer: Create lessons learned at the end of the project.

Explanation:

Lessons learned are the experiences that are gotten from a project which should be taken into account for the future projects. Lesson learned are created at the end of the project.

The main objective of the lessons learned is that they show both the positive experience and the negative experience of a project and this will help the future projects that will be undertaken.

5 0
3 years ago
The Canadair CL-215T amphibious aircraft is specially designed to fight fires. It is the only production aircraft that can scoop
ioda

Answer:

Determine the added thrust required during water scooping, as a function of aircraft speed, for a reasonable range of speeds.= 132.26∪

Explanation:

check attached files for explanation

6 0
3 years ago
For surface-mounted and pendant-hung luminaires, support rods should be placed so that they extend about ____
7nadin3 [17]

Answer:

One

For surface-mounted and pendant-hung luminaires, support rods should be placed so that they extend about _one___

<h3>what is supported mounted?</h3>
  • A structure that holds up or serves as a foundation for something else. Support is a synonym for mounting.

To learn more about it, refer

to brainly.com/question/25689052

#SPJ4

4 0
2 years ago
Other questions:
  • After being purged with nitrogen, a low-pressure tank used to store flammable liquids is at a total pressure of 0.03 psig. (a) I
    13·1 answer
  • Although the viscoelastic response of a polymer can be very complex (time-dependent stress cycling for instance), two special lo
    11·1 answer
  • 4-6. A vertical cylindrical storage vessel is 10 m high and 2 m in diameter. The vessel contains liquid cyclohexane currently at
    7·1 answer
  • Explain why you chose the final design of your prototype and how it solved the identified need
    9·1 answer
  • Describe three parts of a fluid power system and the roles played by each to make the device work.
    8·1 answer
  • When must an Assured Equipment Grounding Conductor Program (AEGCP) be in place?
    10·1 answer
  • A 0.91 m diameter corrugated metal pipe culvert (n = 0.024) has a length of 90 m and a slope of 0.0067. The entrance has a squar
    5·1 answer
  • Please I need help!<br><br> I need 1,2,&amp;3 drawn with front top and side view. Please help asap
    6·1 answer
  • What form of joining uses heat to create coalescence of the materials?
    7·1 answer
  • your friend's parents are worried about going over their budget for th month. Which expense would you suggest is NOT a need?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!