Skip to content

Commit 093ae6e

Browse files
committed
added back text about using list methods and functions with sublists
1 parent 2656bf4 commit 093ae6e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

backend/main/chapters/c08_nested_loops.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,6 +1148,14 @@ def solution(self, strings: List[List[str]]):
11481148
final_text = """
11491149
Excellent! You now understand nested subscripting very well.
11501150
1151+
We can still use all the list methods and functions we learned before.
1152+
For example we can add a new word to the last sublist of `strings` with `append`,
1153+
to come after `'you'`:
1154+
1155+
strings[1].append("today?")
1156+
1157+
After all, the sublist `strings[1]` is still a list like any other!
1158+
11511159
On the next page we will exercise more with nested lists.
11521160
"""
11531161

0 commit comments

Comments
 (0)