+ 1
Can anyone explain me this please
a, b= 7, 11 a=b b+=a print(b)
2 Answers
0
Sevara
a, b = 7, 11 is known as multiple value assignment at single line
So here a = 7 and b = 11
a = b #here single equal is used to assign value
So we assigned value of b to a so a would be 11
Now b += a means b = b + a
But a = 11 and b = 11
So b = 11 + 11 = 22
0
Qisqacha qilib tushuntirganda
B ni qiymatini a ga beryapdi