getting-started-with-lists/questions.rst
changeset 374 57d145c18ccd
parent 342 588b681e70c6
equal deleted inserted replaced
373:037b06baf7d3 374:57d145c18ccd
    34 
    34 
    35 6. What is the function to find the length of a list?
    35 6. What is the function to find the length of a list?
    36 
    36 
    37    len
    37    len
    38 
    38 
    39  7.	
    39 7. Delete the last element from list sq=[5,4,3,2,1,0]
       
    40 
       
    41    del(sq[-1])
       
    42    
       
    43 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]?
       
    44 
       
    45    3
    40 
    46 
    41 Larger Questions
    47 Larger Questions
    42 ----------------
    48 ----------------
    43 
    49 
    44 .. A minimum of 2 questions here (along with answers)
    50 .. A minimum of 2 questions here (along with answers)