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.

Problem definition

Your music analyst wants to identify which bands are very popular/popular/not popular based on the rules below:

  1. A band is very popular if they have greater than 1000 plays OR if they have greater than 50 fans.
  2. A band is popular if they don’t meet the above conditions, but have plays greater than or equal to 500.
  3. 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.