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):

Count uppercase letters python 3.4 problem. Count_upper(word): Please help with this pythonPlease 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

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!