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
What are supercapacitors ?
OLEGan [10]

Answer:

A supercapacitor, also called an ultracapacitor, is a high-capacity capacitor with a capacitance value much higher than other capacitors, but with lower voltage limits, that bridges the gap between electrolytic capacitors and rechargeable batteries.

Explanation:

6 0
3 years ago
Read 2 more answers
Who is the inventor that created the light bulb
uranmaximum [27]

Answer:

Thomas Elva Edison

He invented light.

4 0
3 years ago
1). Mention any four operations that requires airlines. 2). Explain how airflow is applicable to the above mentioned operations.
vladimir2022 [97]

Answer:

Following are the answer to this question:

Explanation:

1)

Following the four operations in the airlines:

Landside operations:

In Airlines, the airports are divided into areas on the countryside and on the airside, in which landside region is available to the public, although strictly controlled access to the airside zone. Its area covers all areas of the airport across the aircraft, including parts of the buildings which can only be reached by customers and employees.

Airside Operations:

It's also committed to ensuring which air operations military exercises Ballarat airfields are safe and secure. It includes the provision of parking and flight escort services to itinerant and automates. Organizing operational response to incidents, accidents, or emergencies at the airport.

Billing and invoicing Operations:

This requires several steps, each of which must be performed with absolute accuracy to ensure that perhaps the airport operator is adequately paid for supplying passengers with all the services and infrastructure. After this, the receipts want to be produced and sent to customers on the airline.

Information management:

In this, it collects all the data about the customers and employees and it also helps in finding new routes and after collecting the data it processes on them.  

2)

It involves many activities in the airline, including dispatch, flight preparation, flight watch, weather information source, activities control, ground-to-air communications, and staff coordination, scheduling, and maintenance planning. Computing and expert programs are constantly being used to handle unpredictable activities.

4 0
3 years ago
Liquefied Natural Gas (LNG) is a natural gas in its liquid form that is clear, colorless, odorless, non-corrosive, and non-toxic
ZanzabumX [31]

Liquefied Natural Gas (LNG) can be defined as a natural gas which in liquid form appear clear and colorless. It is odorless, non-toxic, and non-corrosive. Therefore, the given statement is A) True.

  • LNG or Liquified Natural Gas is a fossil fuel that is produced after the compression of organic matter in the form of algae and phytoplankton.
  • LNG consists of 95% methane gas.
  • The combustion of LNG produces carbon dioxide and water vapors.
  • It burns with a least pollution thus called as cleanest fossil fuel.
  • The liquefaction of the natural gas takes place at -160 degree Celsius. The liquefaction of the gas causes it to transport easily in gas tanks.
  • LNG is colorless, and clear.
  • LNG does not possess any smell and it is non-corrosive to metallic tanks.
  • LNG is also non-toxic.

Learn more about natural gas:

brainly.com/question/12200462

6 0
3 years ago
Compute the theoretical density of ZnS given that the Zn-S distance and bond angle are 0.234 nm and 109.5o, respectively. The at
andriy [413]

Answer: the theoretical density is 4.1109 g/cm³

Explanation:  

first the image of one set of ZnS bonding in the crystal structure, we calculate the value of angle θ

θ + ∅ + 90° = 180°

θ = 90° - ∅

θ = 90° - ( 109.5° / 2 )

θ = 35.25°

next we calculate the value of x from the geometry

given that;  distance angle d = 0.234

x = dsinθ

= 0.234 × sin35.25°)

= 0.135 nm = 0.135 × 10⁻⁷ cm

next we calculate the length of the unit cell

a = 4x

a = 4(0.135)

a = 0.54 nm = 0.54 × 10⁻⁷ cm

next we calculate number of formula units

n' = (no of corner atoms in unit ell × contribution of each corner atom in unit cell) + ( no of face center atom in a unit cell × contribution of each face center atom in a unit cell)

n' = 8 × 1/8) + ( 6 × 1/2)

= 1 + 3

= 4

next we calculate the theoretical density using  this equation

P = [n'∑(Ac + AA)] / [Vc.NA]

= [n'∑(Ac + AA)] / [(a)³NA]

where the ∑Ac is sum of atomic weights of all cations in the formula unit( 65.41 g/mol)

∑AA is the sum of weights of all anions in the formula unit( 32.06 g/mol)

Na is the Avogadro’s number( 6.023 × 10²³ units/mole)

so we substitute

P = [4( 65.41 + 32.06)] / [ ( 0.54 × 10⁻⁷ )³ × (6.023 × 10²³)]

= 389.88 / 94.84

= 4.1109 g/cm³

therefore the theoretical density is 4.1109 g/cm³

5 0
2 years ago
Other questions:
  • Line layout is also called ......​
    5·1 answer
  • g A pump is required to deliver 100 gpm at a head of 100 ft, but the pump rated capacity is 150 gpm at a head of 100 ft. If the
    9·1 answer
  • Am i eating ramon nooddles rn
    10·2 answers
  • Torque is a twisting force. If the required torque applied on a 3 ft wrench is 45 ft·lb, what is the force that must be applied?
    5·1 answer
  • What is the major drawback to use whiskers as a dispersed agents in composites? a)- High price b)- Large length to diameter rati
    7·1 answer
  • read a file called filled in with a few sentences or a paragraph. Then write a function called typoglycemia, which scrambles the
    13·1 answer
  • With a brief description, What are the 14 principles of management by fayol.​
    10·1 answer
  • Yooo. does anyone have tin foil and tape mask that they can take a picture of and send it ?
    5·1 answer
  • Heyyyyyyyyy people wrud
    7·1 answer
  • What is equation for surface area?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!