I will give Brainliest and Extra points for correct answers!!!

Help Me Please!!!

Due in 10 Mins!!!!!

This is A python Q

_______________________________________________________

Question: Make a list of all unique county names and how many customers are there in each city.

Hint: Use append() Function to add First Name and Last Name, Use sort() function to sort those elements in the list

_______________________________________________________

Answers

Answer 1

Answer: puerto rico

Explanation: there are a bunch of travellers, for 2019 was 3,612,000,000.00

Answer 2

Answer:

To complete the task, you can use a dictionary to store the county names and the number of customers associated with each. You can then use the append() function to add each unique county name as a key in the dictionary, and set the value to the number of customers associated with that county. Finally, you can use the sort() function to sort the keys in the dictionary by county name.

# Create an empty dictionary

counties = {}

# Loop through the list of customer names

for customer in customer_list:

# Get the county name of the customer

county_name = customer[2]

# If the county is already in the dictionary, increase the customer count by one

if county_name in counties:

counties[county_name] += 1

# Otherwise add the county name to the dictionary and set the customer count to one

else:

counties[county_name] = 1

# Use the append() function to add each item in the dictionary to the result list

result = []

for county, count in counties.items():

result.append([county, count])

# Use the sort() function to sort the result list by county name

result.sort(key=lambda x: x[0])


Related Questions

Other Questions
How do grocery stores arrange their items? Solveb+2 A $500 TV is 15% off.How much will yousave if you buy it? How does Iago hope to use Cassios good manners around women against Cassio? I support her no matter how she feels Im still gonna love her congrats queen so happy for u ok According to the text, which 3 countries have elected women to lead them?A. Italy, France, and Liberia B. Canada, Liberia, and Germany C. Chile, Liberia, and Germany D. Cuba, Liberia, and Germany GIVING BRAINLIST Which set of ordered pair represents a function?A. { (1,2), (2,3), (3,4), (4,5) }B.{ (-5, 2), (-6,5), (-7, 9), (-8, 10), (-5, 11) }C.{ (1,3), (2,4), (5,6), (2,8) }D.{ (4,9), (5,8), (8,6), (4,7) } Please help!! 10 points for it What does 5*9+1;12 = to advertise o radio,the radio station charges 32naira for the first 10 words and 2naira per word for every additional word.how much will it cost to place an advertisement of 68 words on radio? What is the additive inverse of 1/3 Please help me answer please and please actually Answer can anybody help me with this ? In what ways did the Compromise of 1850 affect slavery laws? Select all that apply.Kansas is admitted to the Union as proslavery state.California is admitted to the Union as antislavery state.Federal laws allow enforced slavery in the Kansas territory. The Fugitive Slave Act demands the arrest of all runaway slaves. Identify the slope and y-intercept 4y+6x=24 * 2. Why did immigration from China and Japan increase in the late 1800s? SIMPLIFY IT PHOTO IS UP I WILL MARK IT BRAINLIEST Review the paragraph on the bottom of page 2.Which statement BEST describes the effect of thisparagraph in the story? Angle AOE has what measurement according to the protractor? (2x+5y)(2x+3y).use a identity