Write A Python Function That Accepts A String And Calculate The Number Of Upper Case Letters And Lower Case Letters
Hello Programmers, Welcome to my channel.
In this video you will learn about how to Write A Python Function That Accepts A String And Calculate The Number Of Upper Case Letters And Lower Case Letters
Python Scripts
========================
[ Ссылка ]
Python Functions Solved
========================
[ Ссылка ]
Python Programs Solved
========================
[ Ссылка ]
Python 3 Tutorial - Code
=============================
def count_cases(string):
uc_count, lc_count = 0, 0
for letter in string:
if "A" less_than= letter less_than= "Z":
uc_count += 1
elif "a" less_than= letter less_than= "z":
lc_count += 1
print("Upper Case Count is : ", uc_count)
print("Lower Case Count is : ", lc_count)
ip_string = input("Enter a String : ")
count_cases(ip_string)
Keywords
=============================
#python #python3 #python_assignment #pythonprogramming #pythontutorial #pythonprojects #pythoncourse #pythonbaba #pythonforbeginners #pythonautomation #pythonbasic #pythonbeginners
Ещё видео!