Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Username Promt using Python with Character Limit

Username = input("What is your username? ")
UsernameLength = len(Username)
if UsernameLength <= 10:
  print(f'Your Username is {Username}')
elif UsernameLength >= 10:
  print("Username is too long! (MAXIMUM IS 20 CHARACTERS)")
  exit()
 

 
PREVIOUS NEXT
Tagged: #Username #Promt #Python #Character #Limit
ADD COMMENT
Topic
Name
5+1 =