In this Bite you parse
social_platformsbelow into a dict of
Validator namedtuples. For each social network you should extract a range and re.compile object.
With the data parsed complete
validate_usernamethat validates a username against a social network of choice (Twitter, Facebook, Reddit here).
The regex might make this a bit more advanced, but as it's an advanced Bite we hope you can draw from the docstrings and tests. Enjoy and keep learning more Python!
17 out of 17 users completed this Bite.
Will you be Pythonista #18 to crack this Bite?
It takes an average of ~103 minutes to solve this Bite (submissions 5-240 min).
Pythonistas rate this Bite 5.0 on a 1-10 difficulty scale.
» Up for a challenge? 💪