string = input("Enter string: ")
if string == '':
exit()
else:
print("Length is =", len(string))
Output:
Enter String:dilip kumar
Length is :11
Name | Views | Likes |
---|---|---|
Python Check Even or Odd. | 477 | 15 |
Python find Largest of Three Number. | 443 | 19 |
Python Print Pattern Programs. | 646 | 18 |
Python Display Calendar. | 494 | 18 |
Python Print Multiplication Table. | 63 | 20 |
Python Find Length of String. | 632 | 18 |
Python Calculate Average Percentage. | 930 | 16 |
Python Add Two Numbers. | 486 | 26 |
Python Get Input from User. | 482 | 20 |
Python Calculate Area of Circle. | 452 | 14 |
Python Find Largest of Two Number | 469 | 14 |
Python Print Prime Numbers. | 496 | 28 |
Comments