Question: Count uppercase letters python 3.4 problem. Count_upper(word): Please help with this python problem. Write a recursive function count-upper () that takes a non-empty string as
Count uppercase letters python 3.4 problem. Count_upper(word):
Please help with this python problem.
Write a recursive function count-upper () that takes a non-empty string as its argument and returns a count of how many letters in the string are uppercase letters. Your function must be recursive and must not use any loops. To solve this problem you will want to use the isupper () and islower () methods of string objects. For example, suppose we had the following variables: letter1 = 'g' letter2 = 'Q' letter1.isupper () would evaluate to False, whereas letter2.isupper () would evaluate to True
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
