Advertisement
dimanou_04

valid usernames

Jul 15th, 2022
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. usernames = input().split(', ')
  2.  
  3. for username in usernames:
  4.     if (3 <= len(username) <= 16) and (username.isalnum() or '-' in username or '_' in username):
  5.         print(username)
  6.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement