F
ferdydurke
hi,
I am trying to learn python... I can't explain the difference beetween these
two programms, Fibonacci suites :
.... print b,
.... a,b,c = b,a+b,c+1
....
1 2 3 5 8 13 21 34 55 89 144
and
.... print b,
.... a=b
.... b=a+b
.... c=c+1
....
1 2 4 8 16 32 64 128 256 512 1024
how about the instructions on the same block ? I thought they could be on
the other lines... perhaps I don't understand a=b and b=a+b ?
thanks in advance.
I am trying to learn python... I can't explain the difference beetween these
two programms, Fibonacci suites :
.... print b,
.... a,b,c = b,a+b,c+1
....
1 2 3 5 8 13 21 34 55 89 144
and
.... print b,
.... a=b
.... b=a+b
.... c=c+1
....
1 2 4 8 16 32 64 128 256 512 1024
how about the instructions on the same block ? I thought they could be on
the other lines... perhaps I don't understand a=b and b=a+b ?
thanks in advance.