getting-started-with-lists/script.rst
author Anoop Jacob Thomas<anoop@fossee.in>
Tue, 09 Nov 2010 19:03:47 +0530
changeset 430 7b2275daab60
parent 415 8afa31ae6129
child 441 430035b678f7
permissions -rw-r--r--
reviewed getting started with lists.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
374
57d145c18ccd Adding metadata to getting started with lists.
amit
parents: 342
diff changeset
     1
.. Objectives
57d145c18ccd Adding metadata to getting started with lists.
amit
parents: 342
diff changeset
     2
.. ----------
57d145c18ccd Adding metadata to getting started with lists.
amit
parents: 342
diff changeset
     3
57d145c18ccd Adding metadata to getting started with lists.
amit
parents: 342
diff changeset
     4
.. By the end of this tutorial, you will be able to
57d145c18ccd Adding metadata to getting started with lists.
amit
parents: 342
diff changeset
     5
57d145c18ccd Adding metadata to getting started with lists.
amit
parents: 342
diff changeset
     6
.. Create Lists.
57d145c18ccd Adding metadata to getting started with lists.
amit
parents: 342
diff changeset
     7
.. Access List elements.
57d145c18ccd Adding metadata to getting started with lists.
amit
parents: 342
diff changeset
     8
.. Append elemets to list
57d145c18ccd Adding metadata to getting started with lists.
amit
parents: 342
diff changeset
     9
.. Delete list elemets
57d145c18ccd Adding metadata to getting started with lists.
amit
parents: 342
diff changeset
    10
57d145c18ccd Adding metadata to getting started with lists.
amit
parents: 342
diff changeset
    11
.. 1. getting started with ipython 
57d145c18ccd Adding metadata to getting started with lists.
amit
parents: 342
diff changeset
    12
57d145c18ccd Adding metadata to getting started with lists.
amit
parents: 342
diff changeset
    13
57d145c18ccd Adding metadata to getting started with lists.
amit
parents: 342
diff changeset
    14
57d145c18ccd Adding metadata to getting started with lists.
amit
parents: 342
diff changeset
    15
.. Prerequisites
57d145c18ccd Adding metadata to getting started with lists.
amit
parents: 342
diff changeset
    16
.. -------------
57d145c18ccd Adding metadata to getting started with lists.
amit
parents: 342
diff changeset
    17
57d145c18ccd Adding metadata to getting started with lists.
amit
parents: 342
diff changeset
    18
..   1. getting started with strings
57d145c18ccd Adding metadata to getting started with lists.
amit
parents: 342
diff changeset
    19
..   #. getting started with lists
57d145c18ccd Adding metadata to getting started with lists.
amit
parents: 342
diff changeset
    20
..   #. basic datatypes
57d145c18ccd Adding metadata to getting started with lists.
amit
parents: 342
diff changeset
    21
     
415
8afa31ae6129 small changes to getting started with lists
Amit Sethi
parents: 374
diff changeset
    22
.. Author              : Amit 
430
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
    23
   Internal Reviewer   : Anoop Jacob Thomas <anoop@fossee.in>
374
57d145c18ccd Adding metadata to getting started with lists.
amit
parents: 342
diff changeset
    24
   External Reviewer   :
57d145c18ccd Adding metadata to getting started with lists.
amit
parents: 342
diff changeset
    25
   Checklist OK?       : <put date stamp here, if OK> [2010-10-05]
57d145c18ccd Adding metadata to getting started with lists.
amit
parents: 342
diff changeset
    26
430
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
    27
.. #[[Anoop: Slides contain only outline and summary
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
    28
374
57d145c18ccd Adding metadata to getting started with lists.
amit
parents: 342
diff changeset
    29
Script
57d145c18ccd Adding metadata to getting started with lists.
amit
parents: 342
diff changeset
    30
------
430
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
    31
 {{{ Show the slide containing title }}}
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
    32
178
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
    33
Hello friends and welcome to the tutorial on getting started with
182
ddfb8b89f5bc some small changes , especially punctuation
amit
parents: 178
diff changeset
    34
lists.
178
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
    35
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
    36
 {{{ Show the slide containing the outline slide }}}
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
    37
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
    38
In this tutorial we will be getting acquainted with a python data
204
65e5e2362bc9 small change in getting_started_with_lists
amit
parents: 201
diff changeset
    39
structure called lists.  We will learn ::
65e5e2362bc9 small change in getting_started_with_lists
amit
parents: 201
diff changeset
    40
 
185
35a3811ca91e reviewed getting_started_with_lists a.k.a liststart
Nishanth <nishanth@fossee.in>
parents: 182
diff changeset
    41
 * How to create lists
35a3811ca91e reviewed getting_started_with_lists a.k.a liststart
Nishanth <nishanth@fossee.in>
parents: 182
diff changeset
    42
 * Structure of lists
35a3811ca91e reviewed getting_started_with_lists a.k.a liststart
Nishanth <nishanth@fossee.in>
parents: 182
diff changeset
    43
 * Access list elements
35a3811ca91e reviewed getting_started_with_lists a.k.a liststart
Nishanth <nishanth@fossee.in>
parents: 182
diff changeset
    44
 * Append elements to lists
430
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
    45
 * Delete elements from lists
178
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
    46
182
ddfb8b89f5bc some small changes , especially punctuation
amit
parents: 178
diff changeset
    47
List is a compound data type, it can contain data of other data
185
35a3811ca91e reviewed getting_started_with_lists a.k.a liststart
Nishanth <nishanth@fossee.in>
parents: 182
diff changeset
    48
types. List is also a sequence data type, all the elements are in
182
ddfb8b89f5bc some small changes , especially punctuation
amit
parents: 178
diff changeset
    49
order and there order has a meaning.
178
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
    50
430
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
    51
.. #[[Anoop: "all the elements are in order and **there** order has a
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
    52
   meaning." - I guess something is wrong here, I am not able to
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
    53
   follow this.]]
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
    54
185
35a3811ca91e reviewed getting_started_with_lists a.k.a liststart
Nishanth <nishanth@fossee.in>
parents: 182
diff changeset
    55
We will first create an empty list with no elements. On your IPython
178
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
    56
shell type ::
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
    57
182
ddfb8b89f5bc some small changes , especially punctuation
amit
parents: 178
diff changeset
    58
   empty = [] 
ddfb8b89f5bc some small changes , especially punctuation
amit
parents: 178
diff changeset
    59
   type(empty)
178
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
    60
   
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
    61
185
35a3811ca91e reviewed getting_started_with_lists a.k.a liststart
Nishanth <nishanth@fossee.in>
parents: 182
diff changeset
    62
This is an empty list without any elements.
178
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
    63
430
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
    64
.. #[[Anoop: the document has to be continous, without any
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
    65
   subheadings, removing * Filled lists]]
178
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
    66
430
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
    67
Lets now see how to define a non-empty list. We do it as,::
178
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
    68
430
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
    69
     nonempty = ['spam', 'eggs', 100, 1.234]
178
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
    70
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
    71
Thus the simplest way of creating a list is typing out a sequence 
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
    72
of comma-separated values (items) between square brackets. 
430
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
    73
All the list items need not be of the same data type.
178
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
    74
185
35a3811ca91e reviewed getting_started_with_lists a.k.a liststart
Nishanth <nishanth@fossee.in>
parents: 182
diff changeset
    75
As we can see lists can contain different kinds of data. In the
430
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
    76
previous example 'spam' and 'eggs' are strings and 100 and 1.234 are
185
35a3811ca91e reviewed getting_started_with_lists a.k.a liststart
Nishanth <nishanth@fossee.in>
parents: 182
diff changeset
    77
integer and float. Thus we can put elements of heterogenous types in
35a3811ca91e reviewed getting_started_with_lists a.k.a liststart
Nishanth <nishanth@fossee.in>
parents: 182
diff changeset
    78
lists. Thus list themselves can be one of the element types possible
430
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
    79
in lists. Thus lists can also contain other lists.  
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
    80
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
    81
.. #[[Anoop: the sentence "Thus list themselves can be one of the
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
    82
   element types possible in lists" is not clear, rephrase it.]]
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
    83
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
    84
Example ::
178
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
    85
182
ddfb8b89f5bc some small changes , especially punctuation
amit
parents: 178
diff changeset
    86
      list_in_list=[[4,2,3,4],'and', 1, 2, 3, 4]
178
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
    87
430
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
    88
We access list elements using the index. The index begins from 0. So
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
    89
for list nonempty, nonempty[0] gives the first element, nonempty[1]
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
    90
the second element and so on and nonempty[3] the last element. ::
178
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
    91
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
    92
	    nonempty[0] 
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
    93
	    nonempty[1] 
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
    94
	    nonempty[3]
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
    95
430
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
    96
.. #[[Anoop: was negative indices introduced earlier, if not may be we
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
    97
   can ask them to try out nonempty[-1] and see what happens and then
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
    98
   tell that it gives the last element in the list.]]
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
    99
178
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   100
We can also access the elememts from the end using negative indices ::
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   101
   
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   102
   nonempty[-1] 
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   103
   nonempty[-2] 
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   104
   nonempty[-4]
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   105
430
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
   106
-1 gives the last element which is the 4th element , -2 second to last
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
   107
and -4 gives the fourth from last element which is first element.
185
35a3811ca91e reviewed getting_started_with_lists a.k.a liststart
Nishanth <nishanth@fossee.in>
parents: 182
diff changeset
   108
35a3811ca91e reviewed getting_started_with_lists a.k.a liststart
Nishanth <nishanth@fossee.in>
parents: 182
diff changeset
   109
We can append elements to the end of a list using append command. ::
178
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   110
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   111
   nonempty.append('onemore') 
201
6b1efb74d914 Applied the suggestion of Nishanth on getting started with lists and basicdatatypes(Partially)
amit
parents: 200
diff changeset
   112
   nonempty
178
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   113
   nonempty.append(6) 
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   114
   nonempty
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   115
   
185
35a3811ca91e reviewed getting_started_with_lists a.k.a liststart
Nishanth <nishanth@fossee.in>
parents: 182
diff changeset
   116
As we can see non empty appends 'onemore' and 6 at the end.
35a3811ca91e reviewed getting_started_with_lists a.k.a liststart
Nishanth <nishanth@fossee.in>
parents: 182
diff changeset
   117
178
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   118
Using len function we can check the number of elements in the list
430
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
   119
nonempty. In this case it 6 ::
178
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   120
	 
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   121
	 len(nonempty)
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   122
201
6b1efb74d914 Applied the suggestion of Nishanth on getting started with lists and basicdatatypes(Partially)
amit
parents: 200
diff changeset
   123
185
35a3811ca91e reviewed getting_started_with_lists a.k.a liststart
Nishanth <nishanth@fossee.in>
parents: 182
diff changeset
   124
35a3811ca91e reviewed getting_started_with_lists a.k.a liststart
Nishanth <nishanth@fossee.in>
parents: 182
diff changeset
   125
Just like we can append elements to a list we can also remove them.
201
6b1efb74d914 Applied the suggestion of Nishanth on getting started with lists and basicdatatypes(Partially)
amit
parents: 200
diff changeset
   126
There are two ways of doing it. One is by using index. ::
178
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   127
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   128
      del(nonempty[1])
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   129
201
6b1efb74d914 Applied the suggestion of Nishanth on getting started with lists and basicdatatypes(Partially)
amit
parents: 200
diff changeset
   130
185
35a3811ca91e reviewed getting_started_with_lists a.k.a liststart
Nishanth <nishanth@fossee.in>
parents: 182
diff changeset
   131
35a3811ca91e reviewed getting_started_with_lists a.k.a liststart
Nishanth <nishanth@fossee.in>
parents: 182
diff changeset
   132
deletes the element at index 1, i.e the second element of the
178
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   133
list, 'eggs'. The other way is removing element by content. Lets say
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   134
one wishes to delete 100 from nonempty list the syntax of the command
430
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
   135
should be 
178
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   136
430
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
   137
.. #[[Anoop: let x = [1,2,1,3]
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
   138
   	     now x.remove(x[2])
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
   139
	     still x is [2,1,3] so that is not the way to remove
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
   140
	     element by index, it removed first occurrence of 1(by
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
   141
	     content) and not based on index, so make necessary
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
   142
	     changes]]
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
   143
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
   144
::
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
   145
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
   146
    nonempty.remove(100)
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
   147
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
   148
but what if there were two 100's. To check that lets do a small
182
ddfb8b89f5bc some small changes , especially punctuation
amit
parents: 178
diff changeset
   149
experiment. ::
178
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   150
342
588b681e70c6 Added a few large questions and quickrefs
amit
parents: 320
diff changeset
   151
	   nonempty.append('python') 
588b681e70c6 Added a few large questions and quickrefs
amit
parents: 320
diff changeset
   152
	   nonempty
588b681e70c6 Added a few large questions and quickrefs
amit
parents: 320
diff changeset
   153
	   nonempty.remove('python') 
588b681e70c6 Added a few large questions and quickrefs
amit
parents: 320
diff changeset
   154
	   nonempty
178
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   155
430
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
   156
If we check now we will see that the first occurence 'spam' is removed
185
35a3811ca91e reviewed getting_started_with_lists a.k.a liststart
Nishanth <nishanth@fossee.in>
parents: 182
diff changeset
   157
thus remove removes the first occurence of the element in the sequence
182
ddfb8b89f5bc some small changes , especially punctuation
amit
parents: 178
diff changeset
   158
and leaves others untouched.
178
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   159
430
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
   160
.. #[[Anoop: does it have two spams or two pythons?]]
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
   161
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
   162
.. #[[Anoop: there are no exercises/solved problems in this script,
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
   163
   add them]]
178
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   164
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   165
{{{Slide for Summary }}}
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   166
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   167
185
35a3811ca91e reviewed getting_started_with_lists a.k.a liststart
Nishanth <nishanth@fossee.in>
parents: 182
diff changeset
   168
In this tutorial we came across a sequence data type called lists. ::
35a3811ca91e reviewed getting_started_with_lists a.k.a liststart
Nishanth <nishanth@fossee.in>
parents: 182
diff changeset
   169
182
ddfb8b89f5bc some small changes , especially punctuation
amit
parents: 178
diff changeset
   170
 * We learned how to create lists.  
320
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents: 208
diff changeset
   171
 * How to access lists.
182
ddfb8b89f5bc some small changes , especially punctuation
amit
parents: 178
diff changeset
   172
 * Append elements to list.
ddfb8b89f5bc some small changes , especially punctuation
amit
parents: 178
diff changeset
   173
 * Delete Element from list.  
ddfb8b89f5bc some small changes , especially punctuation
amit
parents: 178
diff changeset
   174
 * And Checking list length.
320
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents: 208
diff changeset
   175
 
201
6b1efb74d914 Applied the suggestion of Nishanth on getting started with lists and basicdatatypes(Partially)
amit
parents: 200
diff changeset
   176
178
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   177
430
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
   178
{{{ show Sponsored by Fossee Slide }}}
178
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   179
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   180
This tutorial was created as a part of FOSSEE project.
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   181
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   182
I hope you found this tutorial useful.
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   183
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   184
Thank You
4c7b906e0d21 Initial commit getting started with lists.
amit
parents:
diff changeset
   185
430
7b2275daab60 reviewed getting started with lists.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 415
diff changeset
   186
..
208
0f78508a4478 Some punctuation changes
amit
parents: 204
diff changeset
   187
 * Author : Amit Sethi 
0f78508a4478 Some punctuation changes
amit
parents: 204
diff changeset
   188
 * First Reviewer : 
0f78508a4478 Some punctuation changes
amit
parents: 204
diff changeset
   189
 * Second Reviewer : Nishanth