Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #code #sigma
ADD COMMENT
Topic
Name
9+2 =