I have a question on how "," versus what would be \n In python 3.+
#There is technically a "\n" in between this two values (BA & BB)
BA=6
BB=90
But shouldn't it be interpreted the same was as this?
BA,BB = 6,90
Correct? The reason I'm asking this is because of how this while loop is interpreting it.
a ,b = 0,1
while b <100:
print(b)
a,b = b, a+b
Is not the same as:
a=0
b=1
while b <10:
print(b)
a=b
b = a+b
The first while loop gives me a Fibonacci output but the second while loop gives me a duplication. Output of second while loop:
1
2
4
8
4
Could some one explain?