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 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 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-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

Re: [Tutor] What is the best book to start?

2005-03-30 Thread gerardo arnaez
I really think alan gauld books, learning how to program is one of the best esp if you are new. On Wed, 30 Mar 2005 20:08:58 -0800 (PST), Hoffmann <[EMAIL PROTECTED]> wrote: > Hi All, > > I am starting to studying Python. I have some previous > experience with C (beginner level). Could, anyone

Re: [Tutor] If elif not working in comparison

2005-03-28 Thread gerardo arnaez
On Mon, 28 Mar 2005 09:27:11 -0500, orbitz <[EMAIL PROTECTED]> 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 that I cant expect 2 digit preceision?

[Tutor] If elif not working in comparison

2005-03-27 Thread gerardo arnaez
Hi all, I am trying to get a value dependant on initial vlaue inputed Depending on the value, I want the functiont to return a percentage For some reason, It seems to skip the first if state and just print out the 1st elif not sure what is going. also, is there a cleaner way to write this? -=--

[Tutor] Why cant I return more than once here?

2005-03-26 Thread gerardo arnaez
Hi all, I am working a simple function and want it return a a float a list and a dictionary But it seems that I can only use return once in the function cant see to figure out why I can return more than once? Thanks for the help! -- #!/usr/

Re: [Tutor] Fwd: Math Question

2005-03-22 Thread gerardo arnaez
On Tue, 22 Mar 2005 22:59:00 -, Alan Gauld <[EMAIL PROTECTED]> wrote: > OK, No fancy math here, so thee might be a cleaner way, but here > is how I'd do it. > Yikes. Thanks for insight and solving it, Btw, I bought your book a while ago and it was the first that explained classes to me in a

[Tutor] Apology

2005-03-22 Thread gerardo arnaez
I apologize to the group for the dupes and not cutting the extended tail of my previous messages ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Math Question

2005-03-22 Thread gerardo arnaez
This is a resend, but I change the subject so I can track this better, please excuse duplicate -- Forwarded message -- From: gerardo arnaez <[EMAIL PROTECTED]> Date: Tue, 22 Mar 2005 13:32:23 -0800 Subject: Re: Tutor Digest, Vol 13, Issue 65 To: tutor@python.org Hello

[Tutor] Re: Tutor Digest, Vol 13, Issue 65

2005-03-22 Thread gerardo arnaez
Hello, Im a newbie python user, love the way it "just makes sense" but Im also a working doctor and have been thinking about coumadin and how to dose it. I am not sure where to ask this, so I am going to ask on this list for two reasons 1. I intend to use python to prototype it. 2. There must some

[Tutor] Fwd: Math Question

2005-03-22 Thread gerardo arnaez
-- Forwarded message -- From: gerardo arnaez <[EMAIL PROTECTED]> Date: Tue, 22 Mar 2005 13:33:04 -0800 Subject: Math Question To: tutor@python.org This is a resend, but I change the subject so I can track this better, please excuse duplicate -- Forwarded m