[Tutor] Win '98 python
Brian Morud
ordieth@home.com
Sun, 26 Mar 2000 15:57:05 -0600
Oops. I'm so sorry. I forgot to include them when I was transcribing (I
didn't copy and paste). But yes, they're in the script file. What is
interesting is that I am able to run my script within python (by typing
everything in by hand) but not from the command line.
Thanks,
Brian
André Dahlqvist wrote:
> >while ( i < 100 )
> > print phrase,i
> > i = i + 1
>
> Common misstake, you left out the ':' in your loop. Also, in Python you
> don't need to use parenthesis if you don't want to. This works:
>
> while i < 100:
> print phrase, i
> i = i + 1
>
> // André