Created
June 14, 2025 15:18
-
-
Save IncentiveCode/bb0a753e38160f10269a38b24f562f7f to your computer and use it in GitHub Desktop.
Nomad coder | Python challenge | Assignment #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# BLUEPRINT | DONT EDIT | |
import requests | |
movie_ids = [ | |
238, 680, 550, 185, 641, 515042, 152532, 120467, 872585, 906126, 840430 | |
] | |
# /BLUEPRINT | |
# ππ» YOUR CODE ππ»: | |
api = "https://nomad-movies.nomadcoders.workers.dev/movies/" | |
for movie_id in movie_ids: | |
url = f"{api}{movie_id}" | |
response = requests.get(url) | |
data = response.json() | |
print(f"title : {data['title']}\noverview : {data['overview']}\nvote_average : {data['vote_average']}\n") | |
# /YOUR CODE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment