Skip to content

Commit 379f624

Browse files
committed
extra note at the end
1 parent 03b8132 commit 379f624

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/datastructure.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Python has a few built-in data structures. If you are wondering what a data stru
1010

1111
Lists
1212
=====
13+
1314
::
1415

1516
>>> a = [23, 45, 1, -3434, 43624356, 234]
@@ -80,6 +81,7 @@ We can store anything in the list, so first we are going to add another list *b
8081
Above you can see how we used the *a.extend()* method to extend the list. To sort any list we have *sort()* method. The *sort()* method will only work if elements in the list are comparable. We will remove the list b from the list and then sort.
8182

8283
::
84+
8385
>>> a.remove(b)
8486
>>> a
8587
[45, 43624356, -3434, 1, 45, 23, 1, 111, 45, 56, 90]
@@ -529,6 +531,9 @@ changes the variable outside of the function.
529531
[1, 2, 4, 42]
530532

531533

534+
.. note:: Please go through the documentation for the mentioned data types in docs.python.org, at least have a look
535+
at the different methods available on them. For most of the day to day work, we use these data types in our Python code. So, it is important to understand them well. Before you move into next chapter, read the help documentation if nothing else. For example: `help(dict)` or `help(list)`.
536+
532537
Create a calculator
533538
====================
534539

0 commit comments

Comments
 (0)