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
Get step-by-step solutions from verified subject matter experts
