[Tutor] Please Help me with this.

Jakomo Mariachi jgg813@bse.bg
Wed, 20 Oct 1999 18:40:44 +0300


Hello !

I have just eagerly subscribed to this mailing list.
I have not a big programming experience with Python, but really wanna
learn it.

When I read this : ( in the manual )

        a, b = 0, 1
        while b < 10:
                   print b
                   a, b = b, a+b

and the outcome 1 1 2 3 5 8 13 21 . . . . .        -      I can't
understand how it work.


When I try this:
a = 0
b = 0
while b < 10:
          print b
          a = b
          b = a + b
the outcome is one,  but :
a = 0
b = 1
while b < 10:
          print b
          b = a + b
          a = b
the outcome is different.

So , please help me !
Thank you in  advance !

--- Jako ---