Name length entering as per conditions

 Name= input("What is your name? ")

Name_Length= len(Name)

if Name_Length<3:

    print('Name must be at least 3 characters')

elif Name_Length>50:

    print('Name is too long')

else:

    print('Name looks good')


Comments

Popular posts from this blog

Guess game!

Path for chromedriver