Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Python3 code to find Triangular Number Series  

# Python3 code to find Triangular
# Number Series
  
def triangular_series(n):
  
     for i in range(1, n + 1):
         print( i*(i+1)//2,end=' ')
  
# Driver code
n = 5
triangular_series(n)
Comment

PREVIOUS NEXT
Code Example
Python :: python package for facial emotion recognition 
Python :: django admin difference between superuser and staff 
Python :: Horizontal stacked percentage bar chart - matplotlib documentation 
Python :: connection to python debugger failed: socket closed 
Python :: how to choose appropriate graph for dataset visualization 
Python :: python concurrent.futures.ProcessPoolExecutor multiple arguments 
Python :: for con condicion 
Python :: real numbers python 
Python :: django wsgi application could not be loaded error importing module 
Python :: Matplotlib scatter plot custom point annotation 
Python :: Horizontal concatication 
Python :: how to access github folder in python code using github https link 
Python :: basic decorator example 
Python :: image name validate using regex python 
Python :: how to return value in new record to odoo 
Python :: python cd to file 
Python :: reate the "soup." This is a beautiful soup object: 
Python :: how to add a separator in a menubar pyqt5 
Python :: make_interp_spline 
Python :: shorten all floats in a list 
Python :: import math print(m.cos(10)) 
Python :: python print to string 
Python :: python how to count ever yfile in fodler 
Python :: plot idl 
Python :: Build the union of a list of RDDs 
Python :: numpy stack in new dimension 
Python :: create a typo with python 
Python :: python library automatic sort 
Python :: python text to speech 
Python :: pythonpath manager spyder 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =