""" write a function game(my_str) that has one string parameter the function creates and returns 3 strings: string of all lowercase letters string of all uppercase letters and string of all digits write main to test your function """ def game(my_str): low="" up="" digits="" #solution 1: size=len(my_str) for i in range(size): #i is and INDEX,my_str[i] - is a character if(my_str[i]>='a' and my_str[i]<='z'): low=low+my_str[i] elif(my_str[i]>='A' and my_str[i]<='Z'): up=up+my_str[i] elif(my_str[i]>='0' and my_str[i]<='9'): digits=digits+my_str[i] return low, up, digits def main(): my_str=input("enter string ") low, up, digits=game(my_str) print("all lowercase",low) print("all uppercase",up) print("all digits",digits) main()