Question: Python Programming def reverse_name(name): Question 4 - Given a name (as a string), return it written backwards (use string slicing) >>> reverse_name(Dwight Schrute) 'eturhcS

Python Programming

def reverse_name(name): """ Question 4 - Given a name (as a string), return it written backwards (use string slicing) >>> reverse_name("Dwight Schrute") 'eturhcS thgiwD' """ pass

def characters_in_season(appearances, season): """ Question 5 - Given a dictionary of appearances (maps character to a list of seasons they appear in), return a list of the characters' names who appear in the given season. >>> actors_in_season({"Michael Scott": [1, 2, 3, 4, 5, 6, 7, 9], "Robert California": [7, 8]}, 7) ["Michael Scott", "Robert California"] >>> actors_in_season({"Michael Scott": [1, 2, 3, 4, 5, 6, 7, 9], "Robert California": [7, 8]}, 8) [Robert California"] >>> actors_in_season({"Michael Scott": [1, 2, 3, 4, 5, 6, 7, 9], "Robert California": [7, 8]}, 10) [] """ pass

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!