Python Find Length of String.














































Python Find Length of String.



Description: you have to ask from user to enter any string and then find the length of that string using the len() function          

string = input("Enter  string: ")
if string == '':
exit()
else:
print("Length is =", len(string))

Output:
Enter String:dilip kumar
Length is :11

Comments