Challenge 3: Is the Band Popular? (More Complex Function) (Easy)
This challenge expects you to apply a more complex function to determine if a band is popular or not.
We'll cover the following
Problem definition
Your music analyst wants to identify which bands are very popular
/popular
/not popular
based on the rules below:
- A band is
very popular
if they have greater than 1000plays
OR if they have greater than 50fans
. - A band is
popular
if they don’t meet the above conditions, but haveplays
greater than or equal to 500. - A band is
not popular
if they don’t meet any of the above conditions.
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.