Question: what will be the code for this? Write a function to reverse all the characters of each word in an input string i.e input1. capitalize
Write a function to reverse all the characters of each word in an input string i.e input1. capitalize only the first letter of each word and return the output string. Input Specification: input1: An inputstring Output Specification: Return a string with the characters of each word in the reverse order and the first letter of each word capitalized. Example 1: input1: Hello world Output: Olleh Dirow Explanation: The reverse of the word "Hello" with its first letter capitalised is "Olleh" and similarly for the word "world", it is "Dirow". Hence the output string returned is Olleh Dlrow. Example 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
