Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    def midpoint_sum(ints):
    if len(ints) <= 2:
    return None
    for i in range(len(ints)):
    left = sum(range(ints[i-1]))
    right = sum(range(ints[i+1,len(ints)]))
    if sum(left)==sum(right):
    return i
    return None

    Hey peeps.
    I am getting an error because it is encountering tuples, any clue why?

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution