Answers for "python code with sigma"

0

python code with 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)
Posted by: Guest on February-15-2022

Python Answers by Framework

Browse Popular Code Answers by Language