Question: Complete this block of code so that it prints out every play and its playwright. If the playwright is unknown, the program should say

Complete this block of code so that it prints out every play and its playwright. If the playwright is unknown, the program should say it is by "idk bruh". for play in fav plays: for k, v in plays items: print (k, is by', v) Macbeth is by William Shakespeare A Streetcar Named Desire is by Tennessee Williams Hedda Gabler is by idk bruh Amadeus is by Peter Shaffer The Crucible is by idk bruh plays = 'Macbeth': 'William Shakespeare', 'A Streetcar Named Desire': 'Tennessee Williams', 'Amadeus': Peter Shaffer' } fav plays = ['Macbeth', 'A Streetcar Named Desire', 'Hedda Gabler', 'Amadeus', 'The Crucible']
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
