# lijst in-place omkeren
def lijst_omkeren(lijst):
  links = 0
  rechts = len(lijst) - 1;
  
  while links < rechts:
      hulp = lijst[links]
      lijst[links] = lijst[rechts]
      lijst[rechts] = hulp
      links += 1
      rechts -= 1
  return lijst

lijst = [7, 4, 9, 5, 2, 6]
lijst_omkeren(lijst)
print(lijst)

lijst = [9, 8, 7, 6, 5, 4, 3, 2, 1]
lijst_omkeren(lijst)
print(lijst)

lijst = list(range(15))
lijst_omkeren(lijst)
print(lijst)

lijst = [7]
lijst_omkeren(lijst)
print(lijst)

lijst = []
lijst_omkeren(lijst)
print(lijst)
