Hi Guys, Welcome to my channel.
In this video you will learn about how to Write a Python Program to Count Alphabets Digits and Special Char in String
Python Scripts
======================
https://codewithtj.blogspot.com/2024/...
Python Functions Solved
==========================
https://codewithtj.blogspot.com/2023/...
Python Programs Solved
============================
https://codewithtj.blogspot.com/2023/...
Code
=============================
"""
Write a Python Program to Count Alphabets Digits and Special Char in String
"""
my_string = input("Enter a string : ")
alpha_count, digit_count, s_char_count = 0, 0, 0
for letter in my_string:
if letter.isalpha():
alpha_count += 1
elif letter.isdigit():
digit_count += 1
else:
s_char_count += 1
print("Alphabet Count is : ", alpha_count)
print("Digit Count is : ", digit_count)
print("Special Char Count is : ", s_char_count) c
Keywords
=============================
#python #python3 #python_assignment #pythonprogramming #pythontutorial #pythonprojects #pythoncourse #pythonbaba #pythonforbeginners #pythonautomation #pythonbasic #pythonbeginners
In questa pagina del sito puoi guardare il video online Write a Python Program to Count Alphabets Digits and Special Char in String della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Code With TJ 01 ottobre 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 2,286 volte e gli è piaciuto 26 spettatori. Buona visione!