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
Hi I don't know of yall remeber me, but I'm Jadin aka J. I am looking for my friend group, that I have missed but can't find cau
kirill [66]

Answer:

The young lady was his daughter.The shoemaker was frightened when he saw that she wants to sit near him and took his knife to frighten her and leave him alone to do his work

Explanation:

could uh name them since if i know any i would surely tryin help

7 0
2 years ago
Air flows from a large reservoir in which the pressure and temperature are 1 MPa and 30°C, respectively, through a convergent–di
SSSSS [86.1K]

Answer:

The solution is attached in the attachment.

3 0
3 years ago
Read 2 more answers
Led test lights are used to test circuits that include controllers and computers. True or false
Marianna [84]

Answer:

True

Explanation:

An LED test light is a piece of electronic test equipment used to determine the presence of electricity in a piece of equipment under test, making this statement true.

3 0
2 years ago
A certain robot can perform only 4 types of movement. It can move either up or down or left or right. These movements are repres
Olegator [25]

Answer:

def theRoundTrip(movement):

   x=0

   y=0

   for i in movement:

       if i not in ["U","L","D","R"]:

           print("bad input")

           return

       if i=="U":

           y+=1

       if i=="L":

           x-=1

       if i=="D":

           y-=1

       if i=="R":

           x+=1

   return x==0 and y==0

8 0
4 years ago
Tion A. Classwork
pantera1 [17]

Answer:

ambot...

Explanation:

hahahahahhahahahahaha

5 0
3 years ago
Other questions:
  • Consider a single crystal of some hypothetical metal that has the BCC crystal structure and is oriented such that a tensile stre
    10·1 answer
  • The size of Carvins Cove water reservoir is 3.2 billion gallons. Approximately, 11 cfs of water is continuous withdrawn from thi
    11·1 answer
  • What considerations are included in the Preliminary Floodproofing/Retrofitting Preference Matrix?
    7·1 answer
  • A vernier caliper will measure in what ( URGENT)
    10·1 answer
  • C programming fundamentals for everyone​
    13·1 answer
  • Implement the following Matlab code:
    8·1 answer
  • How would you expect an increase in the austenite grain size to affect the hardenability of a steel alloy? Why?
    13·1 answer
  • A parallel circuit has a resistance of 280 and an inductive reactance of 360 02. What's this circuit's impedance?
    6·1 answer
  • QUESTION<br> Which of the following would assembler do an ideal automated assembly line?
    8·1 answer
  • HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!