write a Python function to input a string and print the number of alphabets present in it
Answers
Answered by
0
Answer:
In this tutorial to create ,formet ,modify,and delete string in Python .Also, you will be introduced to various string operation and function.
Explanation:
Of photo ...
A String is a sequence of character:-
Attachments:
Answered by
2
import string
def count_letters(s):
print(s)
return len([x for x in s if x in string.ascii_lowercase or x in string.ascii_uppercase])
print(f"alphabet count: {count_letters('How are you Aishwarya?')}")
Similar questions