P
Paul Symonds
Can someone give and explanation of what is happening with the following:
.... print b
.... a, b = b, a+b
....
1
1
2
3
5
8
.... print b
.... a = b
.... b = a+b
....
1
2
4
8
16
32
64
128
256
512
Why is this statement .. a, b = b, a+b
different to ... a = b
.... b = a+b
.... print b
.... a, b = b, a+b
....
1
1
2
3
5
8
.... print b
.... a = b
.... b = a+b
....
1
2
4
8
16
32
64
128
256
512
Why is this statement .. a, b = b, a+b
different to ... a = b
.... b = a+b