Skip to main content

Program To Accept Line Of Text And Find Number Of Characters

· One min read
Kaustubh Kulkarni
file.py
# Write a program to accept line of text and find number of characters
str1=str(input("Enter String : "))
# Length of string
print(len(str1))
file.py
output:
Enter String : Kaustubh K..com is best site for all programmers
45