Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PLEASE HELP: write this function in Python my API key = d19e9925dfb05c1ecd1b065c3062aa80 Function name: get_upcoming Parameters: None Returns: the next 10 upcoming movies titles (list
PLEASE HELP: write this function in Python
my API key = d19e9925dfb05c1ecd1b065c3062aa80
Function name: get_upcoming Parameters: None Returns: the next 10 upcoming movies titles (list of strings) Description: Write a function that uses an API call and returns a list of the next ten upcoming movie titles (strings) that come first alphabetically. Only consider the upcoming movies that are listed on page 1 Hint: First, find the movie titles from page 1 and add them to a list. Sort this list. Then take the first ten movies titles from this list. Authors: John Wood and Caroline Kish CS1301 HOMEWORKIINTRe Te APIs Test Case: >>> test - get_upcoming) >>> print(test) [ 'A Bad Moms Christmas, 'American Assassin', 'Atomic Blonde', Battle of the Sexes', 'Flatliners, Happy Death Day', Jigsaw', Justice League', 'My Little Pony: The Movie', Only the Brave'] Function name: get_upcoming Parameters: None Returns: the next 10 upcoming movies titles (list of strings) Description: Write a function that uses an API call and returns a list of the next ten upcoming movie titles (strings) that come first alphabetically. Only consider the upcoming movies that are listed on page 1 Hint: First, find the movie titles from page 1 and add them to a list. Sort this list. Then take the first ten movies titles from this list. Authors: John Wood and Caroline Kish CS1301 HOMEWORKIINTRe Te APIs Test Case: >>> test - get_upcoming) >>> print(test) [ 'A Bad Moms Christmas, 'American Assassin', 'Atomic Blonde', Battle of the Sexes', 'Flatliners, Happy Death Day', Jigsaw', Justice League', 'My Little Pony: The Movie', Only the Brave']
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started