July 24, 2021
def solution(a, b): if a == b: return a if a > b: temp = a a = b b = temp answer = 0 for n in range(a, b + 1): answer += n return answer
def adder(a, b): if a > b: a, b = b, a return sum(range(a,b+1))
GitHubVelogFacebook