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]
4 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]4 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
Two basic types of mechanical fuel injector systems?​
REY [17]

Answer:

Single-point or throttle body injection. Port or multipoint fuel injection.

4 0
2 years ago
Read 2 more answers
The collar A, having a mass of 0.75 kg is attached to a spring having a stiffness of k = 200 N/m . When rod BC rotates about the
gladu [14]

Answer:

Speed=1.633 m/s

Force= 20 N

Explanation:

Ideally, v^{2}=\frac {ks^{2}}{m} hence v=s\sqrt {\frac {k}{m}} where v is the speed of collar, m is the mass of collar, k is spring constant and s is the displacement.

In this case, s=100-0=100mm=0.1m since 1 m is equivalent to 1000mm

k is given as 200 N/m and mass is 0.75 Kg

Substituting the given values

v=0.1 m\sqrt \frac {200 N/m}{0.75 Kg}=1.632993162 m/s\approx 1.633 m/s

Therefore, <u>the speed is 1.633 m/s</u>

The sum of vertical forces is given by mg where g is acceleration due to gravity and it's value taken as 9.81 m/s^{2}

Therefore, F_y=0.75\times 9.81=7.3575 N\approx 7.36 N

The sum of forces in normal direction is given by Ma_n=Ks therefore

Ma_n=200*0.1=20 N

Therefore, <u>normal force on the rod is 20 N</u>

5 0
3 years ago
In the High Low Logic Index low levels are bearish and high levels are bullish, generally True False
Irina-Kira [14]

Answer:

True

Explanation:

Logic index is selection of values based on the logical streams. The values appear on the logical array. The levels are determined on the market investment performance. If there are many buyers available in the market the index will be high and the market will be bullish. If there are few or no investors available the market index will be low which means the market is bearish.

8 0
3 years ago
12.28 LAB: Output values in a list below a user defined amount - functions Write a program that first gets a list of integers fr
Anastaziya [24]

Answer:

def output_ints_less_than_or_equal_to_threshold(user_values, upper_threshold):

   for value in user_values:

       if value < upper_threshold:

           print(value)  

def get_user_values():

   n = int(input())

   lst = []

   for i in range(n):

       lst.append(int(input()))

   return lst  

if __name__ == '__main__':

   userValues = get_user_values()

   upperThreshold = int(input())

   output_ints_less_than_or_equal_to_threshold(userValues, upperThreshold)

8 0
3 years ago
For a certain gas, Cp = 840.4 J/kg-K; and Cv = 651.5 J/kg-K. How fast will sound travel in this gas if it is at an adiabatic sta
Crank

Answer:

The speed of the sound for the adiabatic gas is 313 m/s

Explanation:

For adiabatic state gas, the speed of the sound c is calculated by the following expression:

c=\sqrt(\gamma*R*T)

Where R is the gas's particular constant defined in terms of Cp and Cv:

R=Cp-Cv

For particular values given:

R=840.4 \frac{J}{Kg-K}- 651.5 \frac{J}{Kg-K}

R=188.9 \frac{J}{Kg-K}

The gamma undimensional constant is also expressed as a function of Cv and Cp:

\gamma=Cp/Cv

\gamma=840.4 \frac{J}{Kg-K} / 651.5 \frac{J}{Kg-K}

\gamma=1.29

And the variable T is the temperature in Kelvin. Thus for the known temperature:

c=\sqrt(1.29*188.9 \frac{J}{Kg-K}*377 K)

c=\sqrt(91867.73 \frac{J}{Kg})

The Jules unit can expressing by:

J=N.m=\frac{Kg.m}{s^2}* m

J=\frac{Kg.m^2}{s^2}

Replacing the new units for the speed of the sound:

c=\sqrt(91867.73 \frac{Kg.m^2}{Kg.s^2})

c=\sqrt(91867.73 \frac{m^2}{s^2})

c=313 m/s

3 0
3 years ago
Read 2 more answers
Other questions:
  • What causes decay in the amplitudes of vibration?
    11·1 answer
  • Given the latent heat of fusion (melting) and the latent heat of vaporisation for water are Δhs = 333.2 kJ/kg and Δhv = 2257 kJ/
    15·1 answer
  • The map shows the distribution of dairy farms across the lower 48 of the United States. Each dot on the map represents approxima
    11·1 answer
  • Which of these parts of a cell phone is least likely to be found on the phone's circult board?
    5·1 answer
  • Consider coaxial, parallel, black disks separated a distance of 0.20 m. The lower disk of diameter 0.40 m is maintained at 500 K
    13·1 answer
  • Estimate (a) the maximum, and (b) the minimum thermal conductivity values (in W/m-K) for a cermet that contains 76 vol% carbide
    9·1 answer
  • Please answer i dont understand and dont know the answer​
    14·1 answer
  • T/f
    10·1 answer
  • What do Engineering Systems achieve?
    8·1 answer
  • Reason fo I.EE regulations in electrical installations​
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!