Filter a list of names
Level: Beginner (score: 2)
Here is a Bite to practice the continue and break statements in Python.
Complete filter_names that takes a list of names and returns a filtered list (or generator) of names using the following conditions:
- names that start with
IGNORE_CHARare ignored, - names that have one or more digits are ignored,
- if a name starts with
QUIT_CHARit inmediately exits the loop, so no more names are added/generated at this point (neither theQUIT_CHARname), - return up till
MAX_NAMESnames max.
Good luck and keep calm and code in Python!