Skip to content
Discussion options

You must be logged in to vote

Hi @coutinholfc

Please create the empty "list1" (dictionary) inside the while, otherwise it will only create one dictionary in memory, and the second time that the while iterates, it will change the value of "Real Madrid and Spain" with "PSG and France" (which also affects "List2").

You will learn more about that behavior in Chapter 14 (Section 14.1).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@coutinholfc
Comment options

Answer selected by coutinholfc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants