Write a Python Program to Count Alphabets Digits and Special Char in String

preview_player
Показать описание
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
======================

Python Functions Solved
==========================

Python Programs Solved
============================

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:
alpha_count += 1
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
Рекомендации по теме
Комментарии
Автор

thanks a lot brother you helped me a lot
this code is very simple and easy
thank you 🥰🥰🥰

gopalkumar_c