0
What is the difference between x=legs; and legs=x; if there's any?
https://code.sololearn.com/c17bI3l4Rb27/?ref=app Instead of legs=x; I wrote x=legs; but I noticed that the output in this case is 0.I am wondering why this happen.
2 odpowiedzi
+ 4
The first one assigns legs value to x, the second one assigns x value to legs
+ 1
Makes sense, thank you!