All problems

The StreamVerse Back Catalog

easyPythonFiltering

A licensing review is underway at StreamVerse, and legal works through the catalogue one cut-off year at a time: anything released before the year under review comes up for renewal in this round, and anything released in that year or later waits for a later round. The cut-off moves as they work back through the contracts, so it comes with the request rather than being fixed.

Shows

id title genre release_year
1 Nebula Drift sci-fi 2021
2 The Long Kitchen drama 2019
3 Byte Size comedy 2022
4 Deep Trench documentary 2020
5 Neon Alley sci-fi 2023

Input

The DataFrame above is already built for you — the show rows are not read from input. What does arrive is a single line holding the cut-off year, as a whole number.

Task: Print a sorted Python list of the titles released strictly before the cut-off year. A show released in the cut-off year itself waits for a later round.

Example: if two titles came up in a round, you'd print ['A Quiet Show', 'Another Show'].

Sign in to solve this problem

Reading problems is free for everyone — solving them (Run, Submit, and tracking what you've solved) needs an account.

Sign in

Discussion

Sign in to join the discussion — reading is open to everyone.

Loading comments…