String reversal
Asked in the Round 1 Python & Pandas stage.
Implement reverse_string(s) to return the characters of s in reverse order.
reverse_string(s)
s
def reverse_string(s):
Your question is String Reversal Techniques. Start with the requirements in the Question tab.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.