In this we are going to see how to build a function to That Accepts a String and Find No. of Upper and Lower Case Letters - Type 1 of Functions in Python Programming Language.
def upper_lower():
str = "Help For Coders"
upper = 0
lower = 0
for i in str:
if i.isupper():
upper = upper + 1
elif i.islower():
lower = lower + 1
print("Upper Case : ", upper, "Lower Case : ", lower)
upper_lower()
# Coded By DHIRAJ SHELKE
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP