func_code: def reverse(a):
      i = 0
      j = len(a)
      if len(a) == 1:
          return a
      else:
          while i < len(a):
              tmp = a[j - i]
              a[j - i] = a[i]
              a[i] = tmp
              i = i + 1