We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1c03357 + 6b43214 commit 0f15455Copy full SHA for 0f15455
python/lesson3/tutorial.md
@@ -134,10 +134,10 @@ many levels deep you can go before your code is too confusing:
134
'chocolate'
135
136
cake_flavours[1]
137
- ['chocolate cake', 'vanilla icing']
+ ['chocolate', 'vanilla']
138
139
cake_flavours[1][1]
140
- 'vanilla icing'
+ 'vanilla'
141
142
There's a lot more things you can do with lists including concatenating,
143
diffing, sorting, and (scary, but fun) subclassing. This is enough to get you
@@ -171,10 +171,10 @@ tuple, you can always *cast* it as a list:
171
my_tuple = (1, 2, 3)
172
173
my_list = list(my_tuple)
174
- my_list[3] = 99
+ my_list[2] = 99
175
176
my_list
177
- [1, 2, 3, 99]
+ [1, 2, 99]
178
179
my_tuple
180
(1, 2, 3)
0 commit comments