OpenGuide / Python-Guide-for-Beginners

This will be an Open Guide for all beginners in Python ! You can read and learn simple Python codes here , and whats more interesting is that you can even Contribute !!!
MIT License
30 stars 69 forks source link

Different Pascal's triangle implementation #117

Open Nigsia opened 6 years ago

Nigsia commented 6 years ago

I implemented three different ways of calculatting the Pascal's triangle: via recursion, via the typical definition of the sums of the last diagonal elements and finally using cominatorial numbers.

Also implemented Sierpinsky's triangle.