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 countUpperandLowercasestring:
stringinputMy dogs are NUTS"
uppers
lowers
for i in string:
ifiisupper:
uppers
elifiislower:
lowers
return upperslowers
printThe number of lower case letter is: stringlowers
printThe number of non case letter is: stringuppers
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
