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 

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

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 Operating System Questions!