Write A Python Program To Check Username Is Contains Less Than is 10 Characters.

 Write A Program Whether a given Username Contains Less Than 10 Characters.

Code:

username = input("Enter The Username : ")
if (len(username)) < 10 :
    print('Username is correct ')
else :
    print('Username is too long !')

Output:

Enter The Username : rajeeblochan
Username is too long !
Enter The Username : rajeeb
Username is correct 

Comments

Popular posts from this blog

Write A Python Program, Create n Empty Dictionary Allow 4 Friends To, Enter Their Favorite Programming Language As values and User Keys as their Name Assume That The Names Are Unique.

Write Python Program To Store Seven Fruits Name In a List Enter By The User