Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- usernames = input().split(", ")
- for username in usernames:
- if 3 <= len(username) <= 16:
- invalid_symbols = [el for el in username if not el.isdigit() and not el.isalpha() and not el == "-" and not el == "_"]
- if len(invalid_symbols) == 0:
- print(username)
Add Comment
Please, Sign In to add comment