Hello Programmers, Welcome to my Python Programming Tutorial Channel.
In this video you will learn about how to write a python program to accept string and display total number of alphabets
Python Scripts
========================
https://codewithtj.blogspot.com/2024/...
Python Functions Solved
========================
https://codewithtj.blogspot.com/2023/...
Python Programs Solved
========================
https://codewithtj.blogspot.com/2023/...
Python 3 Tutorial - Code #1million
=============================
"""
write a python program to accept string and display total number of alphabets
"""
string = input("Enter String : ")
count = 0
for letter in string:
if "A" less_than_symbol= letter less_than_symbol= "Z" or "a" less_than_symbol= letter less_than_symbol= "z":
count += 1
print("total number of alphabets in string is : ", count)
Python 3 Tutorial - Code #2
=============================
"""
write a python program to accept string and display total number of alphabets
"""
string = input("Enter String : ")
count = 0
for letter in string:
if letter.isalpha():
count += 1
print("total number of alphabets in string is : ", count)
Keywords
=============================
#python #python3 #python_assignment #pythonprogramming #pythontutorial #pythonprojects #pythoncourse #pythonbaba #pythonforbeginners #pythonautomation #pythonbasic #pythonbeginners #education #learnpython #pythoncode #pythonfullstack #pythonscripts #