func_code: def swap(a, i, j):
      while j < len(a) / 2:
          tmp = a[j]
          a[j] = a[i]
          a[i] = tmp
          j = j + 1
          i = i + 1
      return a
  
  
  def reverse(a):
      j = 0
      i = len(a) - 1
      print(swap(a, i, j))