I came across a strange Codecademy exercise that required a function that would take a string as input and return it in reverse order. The only problem was you could not use
Inspired by Jon's answer, how about this one
word = 'hello' q = deque(word) ''.join(q.pop() for _ in range(len(word)))