Question: (In python) Write a function BUtify(s) that takes as input an arbitrary string s and uses recursion to determine and return a new string in

(In python) Write a function BUtify(s) that takes as input an arbitrary string s and uses recursion to determine and return a new string in which all lower-case bs are replaced by upper-case Bs and all lower-case us are replaced by upper-case Us. For example:

>>> BUtify('you be you') result: 'yoU Be yoU' >>> BUtify('beautiful') result: 'BeaUtifUl' >>> BUtify('unbelievable') result: 'UnBelievaBle'

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!