Question: please use python!!! Define a function named q8() that accepts 1 string as a parameter and returns 1 string. The q8() function should build the
please use python!!!
Define a function named q8() that accepts 1 string as a parameter and returns 1 string. The q8() function should build the returned string by reversing and capitalizing the characters in each word from the parameter string (a word, is defined as a series of characters unbroken by a space-see the examples below). When writing your code, use these examples for testing For example: Input String Returned String I am Sam Sam I am That Sam-I-am That Sam-I-am! I do not like That Sam-I-am I MA MAS MAS I MA TAHT MA-I-MAS THAT! MA-I-MAS I OD TON EKIL TAHT MA-I-MAS NOTE: q8() should return the modified Strings -it should not use use print()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
