.pop() will pop off the last element of the list, 'New Zealand'.
2) It seems clearer to explicitly reset the list before each example. We were a little confused about whether the examples are supposed to be one continuous REPL session or isolated examples.
(Also included a little typo fix for "Colombia" 🇨🇴 😸 🇨🇴 )
Here are some changes to the list examples in Python lesson 3 that make them a little more clear. My pair ran into some confusion with two things:
1) This example seems to be wrong:
.pop()
will pop off the last element of the list,'New Zealand'
.2) It seems clearer to explicitly reset the list before each example. We were a little confused about whether the examples are supposed to be one continuous REPL session or isolated examples.
(Also included a little typo fix for "Colombia" 🇨🇴 😸 🇨🇴 )