Main Content

Pascals Triangle in Python and Java

Archive - Originally posted on "The Horse's Mouth" - 2008-11-10 17:50:14 - Graham Ellis

There are certain "party pieces" that I have during courses ... and on my Java Courses, a program to generate Pascal's Triangle in an array of arrays is one of them.

One of my delegates on today's Python Course suggested this as an exercise ... and here's a link to the source. Turns out to be even more elegant than the Java solution, which you can see here