You are filling your name in a google form and there is a limit on the number of letters in your name. Suppose the limit is X , enter your name in a string type variable Y and check whether your name is valid or not. Input Format The first line of input contains the limit of letters in the name, stored in X. The second line contains your name stored in Y Constraints 0<=X<20 Output Format The output should be in the format of yes or no output format is case sensitive Sample Input 0 5 Nazim Sample Output 0 yes
X = int(input()) Y = input() if len(Y) <= X: print("yes") else: print("no")
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)