QUESTION DESCRIPTION
Write a Python program to count the number of words and characters in a given string
Refer sample input and output for formatting specification.
All float values are displayed correct to 2 decimal places.
All text in bold corresponds to input and the rest corresponds to output.
Write a Python program to count the number of words and characters in a given string
Refer sample input and output for formatting specification.
All float values are displayed correct to 2 decimal places.
All text in bold corresponds to input and the rest corresponds to output.
a=input()
res = len(a.split())
print(res)
print(len(a))
Comments
Post a Comment