Re: can't solve an exercise-help me with it

2006-01-12 Thread Tim Roberts
"hossam" <[EMAIL PROTECTED]> wrote: >I'm studying python newly and have an exercise that is difficult for me as a >beginner.Here it is : >"Write a program that approximates the value of pi by summing the terms of >this series: >4/1-4/3+4/5-4/7+4/9-4/11+ The program should prompt the user for

Re: can't solve an exercise-help me with it

2006-01-11 Thread Bengt Richter
On Thu, 12 Jan 2006 05:51:10 +0100, "hossam" <[EMAIL PROTECTED]> wrote: >I'm studying python newly and have an exercise that is difficult for me as a >beginner.Here it is : >"Write a program that approximates the value of pi by summing the terms of >this series: >4/1-4/3+4/5-4/7+4/9-4/11+ Th

Re: can't solve an exercise-help me with it

2006-01-11 Thread Michael J. Fromberger
In article <[EMAIL PROTECTED]>, "hossam" <[EMAIL PROTECTED]> wrote: > I'm studying python newly and have an exercise that is difficult for me as a > beginner.Here it is : > "Write a program that approximates the value of pi by summing the terms of > this series: > 4/1-4/3+4/5-4/7+4/9-4/11+

can't solve an exercise-help me with it

2006-01-11 Thread hossam
I'm studying python newly and have an exercise that is difficult for me as a beginner.Here it is : "Write a program that approximates the value of pi by summing the terms of this series: 4/1-4/3+4/5-4/7+4/9-4/11+ The program should prompt the user for n, the number of terms to sum and then o