Python intermediate | Sololearn: Learn to code for FREE!

+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.

11/13/2021 6:22:03 PM

Sara

1 Answer

New Answer

+1

True, works the same exact way though