+ 1

Python intermediate

In Collection types - Tuple Unpacking: - There is the following question: What is the value of y after this code runs? x, y = [1, 2] x, y = y, x I think in the above question they should have x, y = (1, 2) instead of x, y = [1, 2] since the section is talking about tuple unpacking.

13th Nov 2021, 6:22 PM
Sara
Sara - avatar
1 Respuesta
+ 1
True, works the same exact way though
13th Nov 2021, 6:27 PM
Slick
Slick - avatar