Computer Science, asked by aishwarya2942, 11 months ago

write a Python function to input a string and print the number of alphabets present in it​

Answers

Answered by priyashrama123
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 valeriy69
2

\small\mathsf\color{pink}{Solution\: using\: python\: 3}

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?')}")

\small\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions