I had a job interview today. During it I was asked to write down an algorithm that will reverse a list. First I offered the answer using the reversed() method:
def reverse(text): rev = [] for let in range(len(text),0,-1): rev.append(text[let-1]) return ''.join(rev)