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
posledela
3 years ago
10

The function below takes a single argument: data_list, a list containing a mix of strings and numbers. The function tries to use

the Filter pattern to filter the list in order to return a new list which contains only strings longer than five characters. The current implementation breaks when it encounters integers in the list. Fix it to return a properly filtered new list.
Engineering
1 answer:
pychu [463]3 years ago
3 0

Answer:

def filter_only_certain_strings(data_list):

   new_list = []

   for data in data_list:

       # fix here. change >= to >  

       # because we want to return strings longer than 5 characters in length.

       if type(data) == str and len(data) > 5:

           new_list.append(data)

   return new_list

Explanation:

def filter_only_certain_strings(data_list):

   new_list = []

   for data in data_list:

       # fix here. change >= to >  

       # because we want to return strings longer than 5 characters in length.

       if type(data) == str and len(data) > 5:

           new_list.append(data)

   return new_list

You might be interested in
A steel plate has a hole drilled through it. The plate is put into a furnace and heated. What happens to the size of the inside
djverab [1.8K]

Answer:

The diameter increases

Explanation:

The expansion in the metal is uniform in every dimension

4 0
2 years ago
To revise a monthly budget, changes in which categories might need to be addressed? Check all that apply.
GREYUIT [131]

Income

amount budgeted

expenses

5 0
2 years ago
The theoretical maximum specific gravity of a mix at 5.0% binder content is 2.495. Using a binder specific gravity of 1.0, find
PSYCHO15rus [73]

Answer:

The theoretical maximum specific gravity at 6.5% binder content is 2.44.

Explanation:

Given the specific gravity at 5.0 %  binder content 2.495

Therefore

95 % mix + 5 % binder  gives S.G. = 2.495

Where the  binder is S.G. = 1, Therefore

Per 100 mass unit we have (Mx + 5)/(Vx + 5) = 2.495

(95 +5)/(Vx +5) = 2.495

2.495 × (Vx + 5) = 100

Vx =35.08 to 95

Or density of mix = Mx/Vx = 95/35.08 = 2.7081

Therefore when we have 6.5 % binder content, we get

Per 100 mass unit

93.5 Mass unit of Mx has a volume of

Mass/Density = 93.5/2.7081 = 34.526 volume units

Therefore we have

At 6.5 % binder content.

(100 mass unit)/(34.526 + 6.5) = 2.44

The theoretical maximum specific gravity at 6.5% binder content = 2.44.

3 0
3 years ago
technician a says an out-of-round drum can cause a pulsating brake pedal. technician b says an out-of-round drum can cause the b
denis-greek [22]

According to the question of the pulsating brake pedal, both A and B are correct.

What causes brake pulsation?

Brake pulsation is mainly caused by warped rotors/brake discs. Excessive hard braking or quick stops, which can significantly overheat the discs, are the primary causes of deformed rotors. When the discs overheat, the composition of the metal disc material changes, resulting in imperfections in the metal's surface. Hotspots are noticeable irregularities. They appear as discoloured areas of the disc material, which are often bluish or blackish in appearance. The brake pedal is the pedal which you press with your foot to slow or stop a vehicle. When the driver presses the brake pedal, the system automatically delivers the appropriate pressure required to prevent colliding with the vehicle in front.

To learn more about brake pulsation
brainly.com/question/28779956

#SPj4

8 0
1 year ago
Which of the following explains why material properties present challenges for engineers?
Maurinko [17]

Answer:

Explanation:

They are altered by variables such as temperature hence making materials challenging when dealing with them.

4 0
3 years ago
Other questions:
  • True or false? Don't break or crush mercury-containing lamps because mercury powder may be released.
    8·1 answer
  • The lift on a spinning circular cylinder in a freestream with a velocity of 30 m/s and at standard sea level conditions is 6 N/m
    7·1 answer
  • Establishes general guidelines concerning licensing and vehicle
    10·2 answers
  • A venturi meter is to be installed in a 63 mm bore section of a piping system to measure the flow rate of water in it. From spac
    15·1 answer
  • Miller Indices:
    15·1 answer
  • Find the difference between the first and third angle projection type.
    11·1 answer
  • Emergency plans are being formulated so that rapid action can be taken in the event of an equipment failure. It is predicted tha
    12·2 answers
  • How can we calculate the speed of the output gear in a simple gear train? Explain with the help of an example.
    7·1 answer
  • true or false modeling is making predictions about future data points not associated with your equation? Explain why.​
    12·1 answer
  • The branding, packaging, and labeling of your product should accomplish all of the following except
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!