Question: Why is my code not running? What am I missing? def countUpperandLowercase ( string ) : string = input ( My dogs are NUTS

Why is my code not running? What am I missing?
def countUpperandLowercase(string):
string=input("My dogs are NUTS")
uppers =0
lowers =0
for i in string:
if(i.isupper()):
uppers+=1
elif(i.islower()):
lowers+=1
return [uppers,lowers]
print("The number of lower case letter is: "+ string(lowers))
print("The number of non case letter is: "+ string(uppers))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!