Question: # Question 1 : Create a list using the following artists names: # Weird Al ' , 'Bruno Mars', 'Ricky Martin', ' HP Boyz', 'James

# Question 1: Create a list using the following artists names:
# "Weird Al', 'Bruno Mars', 'Ricky Martin', 'HP Boyz', 'James Blunt', 'Ne-Yo", 'Paul McCartney', 'Little River Band'
Sort it from Z-A
Output the resulting list
[]# Question 2: Add 'Juice Wrld' in the 3rd position of the list
# (Remember: Don't remove any of the the current list items)
Output the resulting list
# Question 3: Make a dictionary that has the artist name as the key and the number of plays at the value.
Loop through the artist list (from question 2) to populate the dictionary.
Hint: Using the plays information below, create a list of plays where the order of plays
# matches the order of the artists in the artist list.
For example, in the play list, 1234821 would be the first variable listed because
# 'Weird Al' is the first variable listed in the artist list. 600000 would be the second variable
# listed in the play list because 'Ricky Martin' is the second variable listed in the artist list.
#Output the resulting dictionary.
# Weird AL =1234821 plays
Ricky Martin =600000 plays
Juice Wrld =38765432 plays
# Paul McCartney =98879838 plays
Ne-Yo =20000 plays
# Little River Band =100 plays
James Blunt =974545 plays
# HP Boyz =45000 plays
Bruno Mars =85279 plays
[] # Question 4: Due to technical errors this month all artists lost count of 100 plays.
Loop through the artist dictionary (from question 3) and add 100 to the count of plays for all artists.
Output the resulting total number of plays for each artist (output just the dictionary values)
[] # Question 5: Delete all artists that do not meet our Clout_Minimum (where their plays are less than the Clout_Minimum of 50900)
# Hint: Use a loop to find the unpopular artists (artists with a play count less than the Clout_Minimum).
Use another loop to delete those artists from the artist dictionary.
# Ouput the resulting dictionary.
Clout Minimum =50000
unpopular=[]
# Question 6:
# Isaac and Grays are two listener profiles.
# Below is a dictionary for Isaac and a dictionary for Grays.
'fav_Artist' is the key and a list of preferred artists are the values.
# Also below is the all_Artists list. This is a list of all available artists.
# Isaac likes 'Little River Band', 'Jackson 5','HP Boyz', and 'Ne-Yo'.
# Grays likes all the other artists listed in the all_Artists list (he doesn't like the artists in Isaac's list).
# Use a loop to update Graysons fav_Artists (update the values to the key 'fav_Artists")
# HINT: You may want to use 'not in' to find Grays's preferred artists.
# Output Grays and Isacc's list of perferred bands.
Isaac 'fav_Artists": ['Little River Band', 'Juice Wrld','HP Boyz', 'Ne-Yo']}
Isaac fav_Artists": Grays fartists":
[] Q Question 7: For both Issac and Grays, calculate the total artist plays (the sum of the plays of all their favorite artists).
# Make a new 'all_plays' key in the Isaac dictionary and the Grays dictionary.
# Insert the totat plays of all their favorite artists as the value of the 'ail_plays' key.
# NOTE: Before you run this block of code, run question 3 again to repopulate the artist dictionary.
# Just push the 'play" button next to question 3 to run it again.
# Output the resulting dictionaries.
# Who has the most plays (likes more mainstream music) and who has the less plays (likes more indie music)?
 # Question 1: Create a list using the following artists names:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!