input: from typing import List
  
  def runningTotal(arr: List[int]) -> List[int]:
      """Returns an array with the running total of numbers in a given list.
      >>> runningTotal([1, 2, 3, 4])
      [1, 3, 6, 10]
      >>> runningTotal([5, 6, 7, 8])
      [5, 11, 18, 26]
      """
output:     result = []
      total = 0
      for num in arr:
          total += num
          result.append(total)
      return result