Question: Create a program that includes a function called spaced that takes a string and returns that string shifted 1 character. For example, given hello as
Create a program that includes a function called spaced that takes a string and returns that string shifted 1 character. For example, given hello as the input, the function should return elloh.
The main function should prompt the user to input a string until the user types Q For each string input call the function with the string and display the result. Note that the user input string may contain white spaces.
Example input/output sessions:
Hello elloH Q
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
