Código de Python con Sigma

#creating a sigma function
a=int(input("enter a number for sigma  "))
mylst=[]

for i in range(1,a+1):
     mylst.append(i)
     b=sum(mylst)
print(mylst)
print(b)
Funny Finch