<filename>solutions/python/2017/isSum.py
#Question: https://python.web.id/blog/triangular-numbers-cf/

def isSum(value):
    sum_ = 0
    out = False
    for i in range(value+1):
        sum_ += i
        if sum_ == value:
            out = True
    return out

'''
>>> value = 10
>>> isSum(value)
True
>>> value = 66
>>> isSum(value)
False
>>>
'''
