# HG changeset patch # User Nishanth # Date 1285241264 -19800 # Node ID 8bc4f7b3e038c1af2db0be8703731b59276e7bc0 # Parent bd7338e6728934e322aa4ebd097a33d8b19a54fd# Parent 4c2ee10366524c841bbca3f527093ba6d5283c00 Merged changes diff -r bd7338e67289 -r 8bc4f7b3e038 getting_started_with_lists.rst --- a/getting_started_with_lists.rst Thu Sep 23 16:55:07 2010 +0530 +++ b/getting_started_with_lists.rst Thu Sep 23 16:57:44 2010 +0530 @@ -50,7 +50,7 @@ We access list elements using the number of index. The index begins from 0. So for list nonempty, nonempty[0] gives the first element, nonempty[1] the second element and so on and -nonempty[3] the last element.:: +nonempty[3] the last element. :: nonempty[0] nonempty[1] @@ -65,9 +65,6 @@ -1 gives the last element which is the 4th element , -2 second to last and -4 gives the fourth from last element which is first element. - - - We can append elements to the end of a list using append command. :: nonempty.append('onemore') @@ -80,7 +77,7 @@ Using len function we can check the number of elements in the list -nonempty. In this case it being 6: +nonempty. In this case it being 6 :: len(nonempty) @@ -134,6 +131,6 @@ Thank You -Author : Amit Sethi -First Reviewer : -Second Reviewer : Nishanth + * Author : Amit Sethi + * First Reviewer : + * Second Reviewer : Nishanth