[FRPythoneers] I must be sitting too close to the monitor.

Scott Durkin sdurkin at psdschools.org
Wed Jan 12 13:50:48 MST 2005


Hi,

My apologies for posing a VERY low-level user question . . .

I use (well, try to anyway) Python in a junior high class I teach.  
I have a simple script and very dumb question . . . 

SCRIPT:

change = 0.05
while change >= 0.01:
    print change
    change = change - 0.01 

OUTPUT:

0.05
0.04
0.03
0.02

QUESTION:

Why doesn't "0.01" appear in the output?!?!?!

Thank you for any help you could give me!

Scott Durkin

__________________________________________________________________________
    _____        ___     __   __   
   /____/ \     /_ /|   /_/| /_/| Scott Durkin - sdurkin at psdschools.org
  |  __ \ /|    | | |  | |__| | |
  | |__) |/  /|_| | |  |  __  | |           Computer Science
  |  ___/   ||__| | |  | | || | |         Preston Junior High
  |_|/      |_____|/   |_|/ |_|/                                         
                                  http://staffweb.psdschools.org/sdurkin
             2004-05                           970.419.7358




More information about the FRPythoneers mailing list