# HG changeset patch # User amit # Date 1288260375 -19800 # Node ID 57d145c18ccda5efc6b6a293ee4b15d958f491d8 # Parent 037b06baf7d3bbea284ddc3329763f813f6307a9 Adding metadata to getting started with lists. diff -r 037b06baf7d3 -r 57d145c18ccd getting-started-with-lists/questions.rst --- a/getting-started-with-lists/questions.rst Thu Oct 28 15:15:28 2010 +0530 +++ b/getting-started-with-lists/questions.rst Thu Oct 28 15:36:15 2010 +0530 @@ -36,7 +36,13 @@ len - 7. +7. Delete the last element from list sq=[5,4,3,2,1,0] + + del(sq[-1]) + +8. How many will you have to use remove function to remove all 6's from the given list sq=[2,5,6,7,6,4,6]? + + 3 Larger Questions ---------------- diff -r 037b06baf7d3 -r 57d145c18ccd getting-started-with-lists/script.rst --- a/getting-started-with-lists/script.rst Thu Oct 28 15:15:28 2010 +0530 +++ b/getting-started-with-lists/script.rst Thu Oct 28 15:36:15 2010 +0530 @@ -1,3 +1,31 @@ +.. Objectives +.. ---------- + +.. By the end of this tutorial, you will be able to + +.. Create Lists. +.. Access List elements. +.. Append elemets to list +.. Delete list elemets + +.. 1. getting started with ipython + + + +.. Prerequisites +.. ------------- + +.. 1. getting started with strings +.. #. getting started with lists +.. #. basic datatypes + +.. Author : Puneeth + Internal Reviewer : Amit + External Reviewer : + Checklist OK? : [2010-10-05] + +Script +------ Hello friends and welcome to the tutorial on getting started with lists.