Friday, 23 December 2022

Python Pascal Triangle



Pascal's Triangle in Python

The Pascal's Triangle is produced in Python. The programming sequence is as follows:

  1. Factorial of a number is run
  2. A function of combination is run
  3. Pascal' s Triangle is produced with the correct space between the terms using the appropriate nth term calculation
You can practise it here interactively: