Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

s=0 def sum(x,y): n=int(input("enter no. of terms") for i in range(n): l=int(input("enter no.")) s=s+l print(s) sum()

s=0
def sum(x,y):
    n=int(input("enter no. of terms")
          for i in range(n):
          l=int(input("enter no."))
          s=s+l
    print(s)
sum()
Comment

PREVIOUS NEXT
Code Example
Python :: python enable pyqt errors 
Python :: pandas split column fixed width 
Python :: pygame image get height 
Python :: python comment header 
Python :: django query string route 
Python :: python chunk text 
Python :: print f python 
Python :: can i call a python script from a function 
Python :: how to install dependencies python 
Python :: django insert data into database foreign key view.py 
Python :: NumPy left_shift Syntax 
Python :: python utf upper() 
Python :: numpy sort multidimensional array 
Python :: wails install 
Python :: how to set a hyperlink in python 
Python :: permutation and combination in python 
Python :: how to loop through lines python 
Python :: df shape 
Python :: Merge 2 or more notebooks into one 
Python :: get values from list of dictionaries python 
Python :: minio python make an object 
Python :: iterate over rows in numpy matrix python 
Python :: python logging repeated messages 
Python :: python how to add a new key to a dictionary 
Python :: pandas append sheet to workbook 
Python :: how to install python packages in local directory 
Python :: state capitals python 
Python :: tkinter insert value box 
Python :: get all commands discord.py 
Python :: python ip camera 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =