Advertisement
horozov86

Valid Usernames

Mar 20th, 2023
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. usernames = input().split(", ")
  2.  
  3. for username in usernames:
  4.     if len(username) < 3 or len(username) > 16:
  5.         continue
  6.  
  7.     if "-" in username or "_" in username or username.isalnum():
  8.         print(username)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement