Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

pascal triangle python

def printPascal(n):  
  
    for i in range(1,n + 1):  
        m = 1;  
        for j in range(1,i + 1):
            print(m, end = " ")
            m = int(m * (i - j) / j)  
        print("")
          
printPascal(int(input()))

#code by fawlid
Comment

PREVIOUS NEXT
Code Example
Python :: tkinter bind to window close 
Python :: open image from link python 
Python :: python format 2 digits 
Python :: create an array from 1 to n python 
Python :: how to hit enter in selenium python 
Python :: display Max rows in a pandas dataframe 
Python :: count missing values by column in pandas 
Python :: find all nan columns pandas 
Python :: python filter None dictionary 
Python :: pandas group by month 
Python :: pygame change logo 
Python :: how to override save method in django 
Python :: python function to print random number 
Python :: how to read a file into array in python 
Python :: open url python 
Python :: python selenium scroll all down 
Python :: python levenshtein distance 
Python :: write dataframe to csv python 
Python :: how to clear console in python 
Python :: how to draw image in tkinter 
Python :: chromebook install pip 
Python :: unban discord.py 
Python :: python datetime add minutes 
Python :: extract numbers from string python 
Python :: python datetime to string iso 8601 
Python :: how to load ui file in pyqt5 
Python :: python check if item in 2d list 
Python :: find root directory of jupyter notebook 
Python :: seaborn create a correlation matrix 
Python :: type(type) == type 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =