Khan Academy interview question

Reverse a string in Python

Interview Answer

Anonymous

30 Jun 2022

reversed(s) Interviewer followup: I was looking for s[::-1], slicing is faster