@@ -74,21 +74,18 @@ for a more complete reference:
7474 >>> places_to_visit
7575 ['Mexico', 'Portugal', 'Kenya', 'Nepal', 'New Zealand']
7676
77- >>> places_to_visit
78- ['Mexico', 'Portugal', 'Kenya', 'Nepal', 'New Zealand']
77+ >>> places_to_visit = ['Mexico', 'Portugal', 'Kenya', 'Nepal', 'New Zealand']
7978 >>> places_to_visit[1] = "Peru"
8079 >>> places_to_visit
8180 ['Mexico', 'Peru', 'Kenya', 'Nepal', 'New Zealand']
8281
83- >>> places_to_visit
84- ['Mexico', 'Portugal', 'Kenya', 'Nepal', 'New Zealand']
82+ >>> places_to_visit = ['Mexico', 'Portugal', 'Kenya', 'Nepal', 'New Zealand']
8583 >>> places_to_visit.pop()
8684 'New Zealand'
8785 >>> places_to_visit
8886 ['Mexico', 'Portugal', 'Kenya', 'Nepal']
8987
90- >>> places_to_visit
91- ['Mexico', 'Portugal', 'Kenya', 'Nepal', 'New Zealand']
88+ >>> places_to_visit = ['Mexico', 'Portugal', 'Kenya', 'Nepal', 'New Zealand']
9289 >>> places_to_visit.append("Colombia")
9390 >>> places_to_visit
9491 ['Mexico', 'Portugal', 'Kenya', 'Nepal', 'New Zealand', 'Colombia']
0 commit comments