Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started