Login and get coding
Working with APIs is very common these days and lucky for us they increasingly return JSON (over XML). We saved OMDb responses for some cool movies into a file that the tests load in.
Parse this data answering some questions:
get_movie_dataconsumes a list of movie json files (1 movie per file), returning a list of movie dicts, so for each movie you convert the json file to a
- now you have the data structure, loop through the movies and return the movie:
- with Comedy in Genres (
- that had the most nominations (
- having the longest runtime (
Expect to do some string parsing and type conversions here. We hope you like it, enjoy!
404 out of 421 users completed this Bite.
Will you be Pythonista #405 to crack this Bite?
Resolution time: ~67 min. (avg. submissions of 5-240 min.)
Pythonistas rate this Bite 4.57 on a 1-10 difficulty scale.
» Up for a challenge? 💪