Pascal's triangle (beginner)

Brandvik tmagna at online.no
Wed Dec 26 10:29:14 EST 2001


I've just started learning Python and I'm wondering how one could
write a function that would print pascals triangle up to a certain
number. It would be great if some of you guys could give me some hints
on how such a script would look. It is not important that the output
is in the form of a triangle -- I'm just wondering how to calculate
the values and print them like this:
1
11
121
1331
14641
etc...

BTW, this is my first post here...

-Brandvik




More information about the Python-list mailing list