Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

super advanced python dictionaries , - Coding Problem 4.5.12 (Advanced) (External resource) (0 points possible) Stars py Submitun Grades Reset 1 #This is a challenging

image text in transcribedsuper advanced python dictionaries

, - Coding Problem 4.5.12 (Advanced) (External resource) (0 points possible) Stars py Submitun Grades Reset 1 #This is a challenging ane! The output will be very lang as you'11 he working on sone pretty bie dictianaries. e don't good chance Console output will be displayed here ?expect everyone to be able to do it, but it's 4?totest how far you've eme! 6 arite a function called stars that takes in two 7 adictionaries: g -movies: dictionary where the keys are movie titles and 18 the values are 1ists of major per formers in the movie.For 11exanple: movies[ The Dark Knight"1-Christian Bale 12 "Heath Ledger ogpie Syllenhal 13-tvshows: dictionary where the keys are TV show titles 14? and the values lists of major, performers in the shUM 15 4 For ex'nple: tvsho?"Comma" i tyl-["Joel Mchale","Alison 16Brie" "Danny Pudi's Donald Gover" Yvette Brown Aaron Eckhart 18 The function stars should return new dictionery. The keys 19 Nof the ne dicti 28 the vlus For eath 1 ovies in which thet per former has appearesd. Sort the shows 22 Nand movies lphabetitelly 23 24 should be the performers" namesa should be the list of shows and 25 wwrite your function here 26 27 28 29 ?Below ere some lines of code that will test function You can change the vlue of the variables) to test your 31?function with different inputs. 32 3 If your function works correctly, this will originelly *print (although the order of the keys nay vory) 35 36 *{.Portia de Rossi. ; ?"Arrested Development.], .will Ferrell. ; ?The Lego Movie, 1, 'Yvette Brown": Milson': [How to Be Sigl,Danny Pudi Cormunity', lizabeth Banks Community' 38,RockThe Lego ie,lec B1dwin eb Lego Movie'], 3 Rock', ison Brie: ty How to Be ['3e Rock'], 38 Rock 'Dakote Johnson':J.htow toge single.], "Joel ''?na Fey'; The ?Commun 30 Rock McBreyer :['Arrested Development' The Lego Movie' McHale' ; Morgan Jason Batemen': 'Arrested opnent 37 38 nariesow to Be Single"["Alison Brie" "Dskota Johnson" The Lego Mavie""ill Arnett", "lizabeth Banks" 2 tvshaws"Cnunity":[Alison SeJl McHale vette Brn acy, Morgan",-"Jack,"cbrayer", 1sson Batensn" "ill Arnett Donald Glover"], "39 Rack": Tina Arrested Development oro. t nani-1) 49 printstrsnoies, tvshoms))

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals Design And Implementation

Authors: KROENKE DAVID M.

1st Edition

8120322258, 978-8120322257

Students also viewed these Databases questions

Question

Which PowerPoint view is shown in the image?

Answered: 1 week ago