Answered step by step
Verified Expert Solution
Question
1 Approved Answer
program that takes in a string and outputs the input string transformed so that a space character is added between each two of its (consecutive)
program that takes in a string and outputs the input string transformed so that a space character is added between each two of its (consecutive) characters.
Ex: If the input is 'Wonderful!', the output is:
W o n d e r f u l !
Note: there is a space character at the end of the result string, too.
program must define and call the function AddSpaces whose input is a string, and which returns a string built as described above:
def AddSpaces(inputString):
no idea how this is done please help
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