num = 0for i in range(1,101): num += i print num
s=0for i in range(1,101): s+=iprint(s)
def getsum=(n): sum=0 for i in range(n): sum+=(i+1) return sumgetsum(100)