[Tutor] double result ...

R. Alan Monroe amonroe at columbus.rr.com
Sun Nov 16 17:25:20 EST 2003


>>>> a=7
>>>> b=9
>>>> c=8
>>>> for i in range(a,b,c):
>>>>    print i
> ...
> ...
> 7
> ... gives value a, becuse it is the first value in the row, and
> because a, b, c are no "logical sequence" for computer (it doesn't
> support alphabet) !!


Try the exact same program, but remove the "range" keyword, see if that's
more of what you were expecting.

Alan




More information about the Tutor mailing list