Re: [Tutor] Re: If elif not working in comparison

2005-04-17 Thread Danny Yoo
On Sun, 17 Apr 2005, gerardo arnaez wrote: > I have finished a coumadin dose calcalutor > but want to have it work via a web interface. > > The base code is here > http://mung.net/~dude/coumadinAll.html > > but not sure what would be the next step in getting this working > on the web. Hi Gerar

Re: [Tutor] Re: If elif not working in comparison

2005-04-17 Thread gerardo arnaez
Hi all. I have finished a coumadin dose calcalutor but want to have it work via a web interface. The base code is here http://mung.net/~dude/coumadinAll.html but not sure what would be the next step in getting this working on the web. is, I want someone to use a web interface and type in INR,

Re: [Tutor] Re: If elif not working in comparison

2005-04-05 Thread Brian van den Broek
gerardo arnaez said unto the world upon 2005-04-05 23:00: Hi all. I would like some crituqe on this code. It is three separate files (all put on one web page) Each one is labeled in the comment that begins each section of code. It is a little longer when I put it all on one page, so I have it up on

Re: [Tutor] Re: If elif not working in comparison

2005-04-05 Thread gerardo arnaez
Hi all. I would like some crituqe on this code. It is three separate files (all put on one web page) Each one is labeled in the comment that begins each section of code. It is a little longer when I put it all on one page, so I have it up on a link. If any kind souls would critique it before I mo

Re: [Tutor] Re: If elif not working in comparison

2005-04-04 Thread Kent Johnson
gerardo arnaez wrote: Hi all. I would like to post the very small py files I have written while doing this. Would anyone object. I think at most there be 20 lines of code all the files put together. I woul dlike to hear some crituqe on them That's no problem, for 20 lines just put it in the body o

Re: [Tutor] Re: If elif not working in comparison

2005-04-04 Thread gerardo arnaez
Hi all. I would like to post the very small py files I have written while doing this. Would anyone object. I think at most there be 20 lines of code all the files put together. I woul dlike to hear some crituqe on them Thanks On Apr 4, 2005 11:08 AM, Christopher Smith <[EMAIL PROTECTED]> wrote: >

Re: [Tutor] Re: If elif not working in comparison

2005-04-04 Thread Christopher Smith
On Monday, Apr 4, 2005, at 05:01 America/Chicago, [EMAIL PROTECTED] wrote: Would I used an if else: construction to determine where the INR value lay and decide what precentage to increase it by? Yes, that seems to be the right way to do that. The caveat is that when you are using boolean tests

Re: [Tutor] Re: If elif not working in comparison

2005-04-03 Thread gerardo arnaez
On Mar 29, 2005 3:06 AM, C Smith <[EMAIL PROTECTED]> wrote: > If you have Python 2.4 you might want to check out the decimal type > that is now part of the language. There is a description at > > http://www.python.org/doc/2.4/whatsnew/node9.html > > >>> import decimal > >>> a = decimal.Decima

[Tutor] Re: If elif not working in comparison

2005-03-29 Thread C Smith
> gerardo arnaez wrote: > >> On Mon, 28 Mar 2005 09:27:11 -0500, orbitz >> wrote: >> >>> Floats are inherintly inprecise. So if thigns arn't working like you >>> expect don't be surprised if 0.15, 0.12, and 0.1 are closer to the same >>> number than you think. >> >> >> >> Are you telling me tha