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
Gemiola [76]
3 years ago
5

Write a function named "total_population" that takes a string then a list as parameters where the string represents the name of

a CSV file containing city data in the format "CountryCode,CityName,Region,Population,Latitude,Longitude" and the second parameter is a list where each element is itself a list containing 3 strings as elements representing the CountryCode, CityName, and Region in this order. Return the total population of all cities in the list. Note that the city must match the country, name, and region to ensure that the correct city is being read.
Engineering
1 answer:
adelina 88 [10]3 years ago
5 0

Answer:

Return the total population of all cities in the list.

Explanation:

It is for every element in cityinfo. It works not only for one array but multiple.

I attached the document with the code or function with the name import cvs becuase when I wrote it down and it sent a message written on red about inappropriate words.

Download docx
You might be interested in
. Using the Newton Raphson method, determine the uniform flow depth in a trapezoidal channel with a bottom width of 3.0 m and si
Over [174]

Answer:

y  ≈ 2.5

Explanation:

Given data:

bottom width is 3 m

side slope is 1:2

discharge is 10 m^3/s

slope is 0.004

manning roughness coefficient is 0.015

manning equation is written as

v =1/n R^{2/3} s^{1/2}

where R is hydraulic radius

S = bed slope

Q = Av =A 1/n R^{2/3} s^{1/2}

A = 1/2 \times (B+B+4y) \times y =(B+2y) y

R =\frac{A}{P}

P is perimeter =  (B+2\sqrt{5} y)

R =\frac{(3+2y) y}{(3+2\sqrt{5} y)}

Q = (2+2y) y) \times 1/0.015 [\frac{(3+2y) y}{(3+2\sqrt{5} y)}]^{2/3} 0.004^{1/2}

solving for y100 =(2+2y) y) \times (1/0.015) [\frac{(3+2y) y}{(3+2\sqrt{5} y)}]^{2/3} \times 0.004^{1/2}

solving for y value by using iteration method ,we get

y  ≈ 2.5

5 0
3 years ago
A battery is an electromechanical device. a)- True b)- False
lilavasa [31]

Answer:

b)False

Explanation:

A battery is a device which store the energy in the form of chemical energy.And this stored energy is used according to the requirement.So battery is not a electromechanical device.Because it does have any mechanical component like gear ,shaft flywheel etc.

A flywheel is known as mechanical battery because it stored mechanical energy and supply that energy when more energy is required.Generally fly wheel is used during punching operation.

5 0
3 years ago
2) The switch in the circuit below has been closed a long time. At t=0, it is opened.
saul85 [17]

Answer:

  il(t) = e^(-100t)

Explanation:

The current from the source when the switch is closed is the current through an equivalent load of 15 + 50║50 = 15+25 = 40 ohms. That is, it is 80/40 = 2 amperes. That current is split evenly between the two parallel 50-ohm resistors, so the initial inductor current is 2/2 = 1 ampere.

The time constant is L/R = 0.20/20 = 0.01 seconds. Then the decaying current is described by ...

  il(t) = e^(-t/.01)

  il(t) = e^(-100t) . . . amperes

8 0
3 years ago
Reagen pembatas adalah
kow [346]
I don’t know what you mean by that
5 0
3 years ago
State the number of terms for each of the following algebraic expression 2x+1
harina [27]

Answer:

Expressions are made up of terms.

A term is a product of factors.

Coefficient is the numerical factor in the term

Before moving to terms like monomials, binomials, and polynomials, like and unlike terms are discussed.

When terms have the same algebraic factors, they are like terms.

When terms have different algebraic factors, they are unlike terms.

Explanation:

Hi please follow me also if you can and thanks.

6 0
3 years ago
Other questions:
  • A 3-kg block rests on top of a 2-kg block supported by, but not attached to, a spring of constant 40 N/m. The upper block is sud
    14·2 answers
  • A crude fermenter is set up in a shed in the backyard of a suburban house. Under anaerobic conditions with ammonia as the nitrog
    9·1 answer
  • Summarize three attributes that are important for an engineer to possess.
    13·1 answer
  • What are two reasons why Hunter edjucation is important?<br><br><br> 30 pts
    12·1 answer
  • A typical aircraft fuselage structure would be capable of carrying torsion moment. a)True b)- False
    12·1 answer
  • Determine the minimum required wire radius assuming a factor of safety of 3 and a yield strength of 1500 MPa.
    15·1 answer
  • What kinds of problems or projects would a mechanical engineer work on?
    11·1 answer
  • the social dilemma and coded bias documentary compare and contrast (goods and bad) they may have on future technology developmen
    12·1 answer
  • thanh thẳng AD có kích thước và chịu lực như hình.biết P1 = 10kn, p2=5kn,M=15kn*m,a=2m.Hãy xách định phản lực liên kết tại A,b
    14·1 answer
  • Engine vacuum is being discussed. Technician A says that when the engine is operating under light loads, engine vacuum is low. T
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!