All problems

Who's on This Plan?

easyPythonFiltering

StreamVerse's growth team is rolling out beta features one plan at a time, and each rollout needs the roster for the plan it is aimed at — the premium roster for a premium-only feature, the basic roster when they want to test an upsell prompt, and so on. The plan is typed in by whoever is running the rollout, so it has to match the way the plan column spells it.

Subscribers

id name plan signup_date country
1 Ana Torres premium 2022-11-01 US
2 Ben Osei basic 2023-01-15 UK
3 Chloe Martin standard 2023-02-20 US
4 Dev Malhotra premium 2023-03-10 IN
5 Ella Novak basic 2023-04-05 UK

Input

The DataFrame above is already built for you — the subscriber rows are not read from input. What does arrive is a single line holding the plan this rollout is aimed at.

Task: Print a sorted Python list of names of subscribers whose plan equals the line that arrived.

Example: if two subscribers were on that plan, you'd print ['Ada Bloom', 'Zeno Marsh'].

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…