Answer:
def count_case(input): #create a function
uppercase = 0 #declare variables
lowercase = 0
for x in input: #loop through user input looking at each letter
if x.isupper(): #if letter is uppercase
uppercase += 1 #increment the uppercase counter
elif x.islower(): #otherwise if it is lowercase
lowercase += 1 #increment the lowercase counter
print(uppercase) #print uppercase count
print(lowercase) #print lowercase count
string = input("enter string: ") #ask for user input
count_case(string) #run function