Question: Complete the genres_menu method for the Movie module. It should print the Movie genres as: Genres 0 science fiction 1 fantasy 2 drama 3 romance
Complete the genres_menu method for the Movie module.
It should print the Movie genres as:
Genres 0 science fiction 1 fantasy 2 drama 3 romance 4 comedy 5 zombie 6 action 7 historical 8 horror 9 war 10 mystery
Note that the method should be written in such a way that if more genres are added to the list of genres it should not be necessary to change this method's code.
Test Movie.py:
def genres_menu():
"""
-------------------------------------------------------
Creates a string of Movie genres in the format:
0 science fiction
1 fantasy
2 drama
...
Use: s = Movie.genres_menu()
Use: print(Movie.genres_menu())
-------------------------------------------------------
Returns:
string - A numbered string of Movie genres.
-------------------------------------------------------
"""
return string
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
