Re: Limit between 0 and 100

2008-10-27 Thread bearophileHUGS
(Sorry for the answering delay, Google groups is very slow.) James: >P.S. I don't understand a lot of what I have there, I got most of it from the >beginning tutorials and help sections. I have never programmed before, but >this is for a school assignment.< You must understand what you do at s

Re: Limit between 0 and 100

2008-10-27 Thread Matimus
On Oct 25, 1:42 pm, [EMAIL PROTECTED] wrote: > Hi. I'm very new to Python, and so this is probably a pretty basic > question, but I'm lost. I am looking to limit a float value to a > number between 0 and 100 (the input is a percentage). > > I currently have: > > integer = int() > running = True > >

Re: Limit between 0 and 100

2008-10-25 Thread Steven D'Aprano
On Sat, 25 Oct 2008 13:42:08 -0700, chemicalclothing wrote: > Hi. I'm very new to Python, and so this is probably a pretty basic > question, but I'm lost. I am looking to limit a float value to a number > between 0 and 100 (the input is a percentage). Before I answer that, I'm going to skip to s

Re: Limit between 0 and 100

2008-10-25 Thread Marc 'BlackJack' Rintsch
On Sat, 25 Oct 2008 13:42:08 -0700, chemicalclothing wrote: > Hi. I'm very new to Python, and so this is probably a pretty basic > question, but I'm lost. I am looking to limit a float value to a number > between 0 and 100 (the input is a percentage). > > I currently have: > > integer = int() W

Re: Limit between 0 and 100

2008-10-25 Thread Benjamin Kaplan
On Sat, Oct 25, 2008 at 4:42 PM, <[EMAIL PROTECTED]> wrote: > Hi. I'm very new to Python, and so this is probably a pretty basic > question, but I'm lost. I am looking to limit a float value to a > number between 0 and 100 (the input is a percentage). > > I currently have: > > integer = int() > ru

Limit between 0 and 100

2008-10-25 Thread chemicalclothing
Hi. I'm very new to Python, and so this is probably a pretty basic question, but I'm lost. I am looking to limit a float value to a number between 0 and 100 (the input is a percentage). I currently have: integer = int() running = True while running: try: per_period_interest_rate = float(ra