[Solved] Sololearn "The Spy Life" Code Coach Exercise
The code I wrote as a solution for the exercise below successfully reverses the input, but only removes some of the non-letters and non-spaces, and leaves in some digits remaining in it's output.. especially when there are two consecutive characters that need to be removed from the input.. my code removes one and leaves the other to character to remain as part of the output. Can you pinpoint why? Please find below: - the exercise - my code solution - a case where my solution did not work Code Coach Exercise: " You are a secret agent, and you receive an encrypted message that needs to be decoded. The code that is being used flips the message backwards and inserts non-alphabetic characters in the message to make it hard to decipher. Task: Create a program that will take the encoded message, flip it around, remove any characters that are not a letter or a space, and output the hidden message. Input Format: A string of characters that represent the encoded message. Output Format: A string of character tha