Write a program to input a string in Lowercase. Perform the following task:
a) Display the Length of the string.
b) Display number of times the character 'a' occurs in the string
c) Display first 4 characters of the string.
Answers
Answered by
0
Answer:
s=input()
print(s.count())
print(s.count('a'))
print(s[:4])
Explanation:
in python the above program is written
Similar questions