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
Get step-by-step solutions from verified subject matter experts
