Pascal's triangle (beginner)

A. Keyton Weissinger keyton at weissinger.org
Wed Dec 26 11:57:49 EST 2001


Good stuff in here, Karl. What are these examples from?

Keyton

> -----Original Message-----
> From: python-list-admin at python.org
> [mailto:python-list-admin at python.org]On Behalf Of Karl M. Syring
> Sent: Wednesday, December 26, 2001 11:23 AM
> To: python-list at python.org
> Subject: Re: Pascal's triangle (beginner)
> 
> 
> "Brandvik" <tmagna at online.no> schrieb im Newsbeitrag
> news:2oqj2ucmbo2658uq1dq3v8quc6f116d8tq at 4ax.com...
> > 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...
> 
> Look at http://www.inetarena.com/~pdx4d/ocn/python/series.html for the
> answer on this and several related questions that my come up.
> 
> Karl M. Syring
> 
> 
> -- 
> http://mail.python.org/mailman/listinfo/python-list
> 
> 




More information about the Python-list mailing list