Login and get codingIn this Bite you parse
social_platforms
below into a dict ofValidator namedtuples
. For each social network you should extract a range and re.compile object.With the data parsed complete
validate_username
that 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!
Will you be the 151st person to crack this Bite?
Resolution time: ~68 min. (avg. submissions of 5-240 min.)
Our community rates this Bite 5.91 on a 1-10 difficulty scale.
» Up for a challenge? 💪