Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #39313
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2013-02-19 20:36 -0800 |
| References | <d8fe7094-3f11-4d18-88cc-a75dbf1b832e@googlegroups.com> <mailman.2083.1361333412.2939.python-list@python.org> |
| Message-ID | <4379615c-75fe-4b36-8a5a-0e4f49c9351c@googlegroups.com> (permalink) |
| Subject | Re: Python problem |
| From | ach360@gmail.com |
Loop_variable= 1
Pi=1.0
term=0
T=1.0
While (loop_variable> 0):
Loop_variable=Loop_variable+1
T=T+2.0
If (loop_variable%2 ==0):
Term=0;
Else:
term=1;
If term ==0:
Pi=Pi- float(1/T);
Else:
Pi=Pi+ float(1/T);
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Python problem ach360@gmail.com - 2013-02-19 19:01 -0800
Re: Python problem Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-02-19 23:10 -0500
Re: Python problem ach360@gmail.com - 2013-02-19 20:36 -0800
Re: Python problem Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-02-20 04:22 +0000
csiph-web