Source code: def upper(String): count1 = 0 for i in string: if (i.isupper()): count1 = count1 + 1 return count1 def lower(String): count1 = 0 for i in string: if (i.islower()): count1 = count1 + 1 return count1 def digit(String): count1 = 0 for i in string: if (i.isdigit()): count1 = count1 + 1 return count1 def whitespace(String): count1 = 0 for i in string: if (i==" "): count1 = count1 + 1 return count1 def backWord(String): for i in range(len(string)-1,-1,-1): print(string[i],end="") string=input("Enter string:") print("no.of uppercase letters are :",upper(string)) print("no.of lowercase letters are :",lower(string)) print("no.of digits are :",digit(string)) print("no.of whitespaces are :",whitespace(string)) print("Reverse order of string : ",end="") backWord(string)