Program - Counting total lower Case in a string


Topic: Program - Counting total lower Case in a string

Solution

str1 = "abc4234AFdeaa"
digitCount = 0
for i in range(0,len(str1)):
  char = str1[i]
  if(char.lower()):
    digitCount += 1
print('Number total lower Case: ',digitCount)



List all Python Programs