Your question is Reverse String With Special Characters. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Reverse a string without changing the position of special characters.
Treat letters and digits as reversible characters. Every other character, including spaces and punctuation, must remain at its original index.
Implement def reverse_string(s):, which accepts a string and returns the transformed string. The input contains ASCII letters, digits, and special characters.
def reverse_string(s):