[Tutor] A better way to estimate the value of Pi?

2011-10-17 Thread Sagar Shankar
Hi, this is my first question to this group. I'm a beginner to computer science and programming in Python. Am currently using John Zelle's book - Python Programming: An introduction to computer science to teach myself. In the book, there is an exercise to create a program that approximates the

Re: [Tutor] A better way to estimate the value of Pi?

2011-10-17 Thread Sagar Shankar
Hi Bob, I did use floating point numbers by using 4.0/1.0 - 4.0/3.0 etc., though I did not declare it explicitly. Do you think it's better form/practice to explicitly declare it? Regards, Sagar On Mon, Oct 17, 2011 at 9:10 PM, bob gailer bgai...@gmail.com wrote: On 10/17/2011 6:31 AM, Sagar

Re: [Tutor] A better way to estimate the value of Pi?

2011-10-17 Thread Sagar Shankar
Hi Steven, Can I ask you to please post code using plain text rather than HTML email (also known as rich text), as HTML email messes up the formatting? In this case, I can reverse-engineer the correct formatting, so no harm done other than a waste of time, but that won't always be so easy.