def solution(a, b): num = 0 for i in range(min(a,b),max(a,b)+1): num += i return num
def solution(a, b): return sum(range(min(a,b),max(a,b)+1))