Search
 
SCRIPT & CODE EXAMPLE
 

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)
Comment

PREVIOUS NEXT
Code Example
Python :: Convert two lists into a dictionary in python 
Python :: correlation with specific columns 
Python :: how to make a nan value in a list 
Python :: python replace line in file 
Python :: create pandas dataframe from dictionary 
Python :: blender scripting set active ojbect 
Python :: dtype in pandas 
Python :: swap variables in python 
Python :: python tkinter projects 
Python :: remove tab space from string in python 
Python :: python code to replace first value of txt file 
Python :: different states of a button tkinter 
Python :: pyplot python 
Python :: get name of month python 
Python :: disable close button in tkinter 
Python :: check if file is txt python 
Python :: add two numbers in python 
Python :: tensorflow matrix multiplication 
Python :: python random number guessing game 
Python :: loop indexing 
Python :: python int to string 
Python :: Matplotlib rotated x tick labels 
Python :: python filter dict 
Python :: subarray in python 
Python :: pandas xa0 
Python :: get last 3 in array python 
Python :: how to replace the last character of a string in python 
Python :: python iterate through objects attributes 
Python :: how to slice a string in python 
Python :: get current domain name django 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =