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
# Write a program to accept line of text and find number of characters
str1=str(input("Enter String : "))
# Length of string
print(len(str1))
output:
Enter String : Kaustubh K..com is best site for all programmers
45