Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database Design With Microcomputer Applications

Authors: Glenn A. Jackson

1st Edition

0137718411, 978-0137718412

More Books

Students also viewed these Databases questions

Question

Know what customers expect from the firm when they complain.

Answered: 1 week ago

Question

Understand why customers complain.

Answered: 1 week ago