loops/questions.rst
changeset 461 757418fff170
parent 453 b0e3f24bd78a
child 462 3a1575a45152
equal deleted inserted replaced
460:5d032e253580 461:757418fff170
    14    #. strings
    14    #. strings
    15    #. tuples
    15    #. tuples
    16    #. all of the above
    16    #. all of the above
    17 
    17 
    18 .. I was not sure of how to frame this question. Can someone fix it?
    18 .. I was not sure of how to frame this question. Can someone fix it?
    19 
    19 ..#[bhanu: it works for every `sequence` or an iterator for that matter right?]
    20    Answer: all of the above
    20    Answer: all of the above
    21 
    21 
    22 #. ``x = range(20)``. What is x?
    22 #. ``x = range(20)``. What is x?
    23 
    23 
    24    Answer: A list of numbers from 0 to 19. 
    24    Answer: A list of numbers from 0 to 19. 
    83              continue
    83              continue
    84              print i * j
    84              print i * j
    85 
    85 
    86    Answer: Nothing is printed
    86    Answer: Nothing is printed
    87 
    87 
    88 .. #[[Anoop: I think more questions on while loop has to be added as
    88 .. #[[Anoop: I think more questions on while loop have to be added as
    89    for loop was already covered in another LO, these questions can be
    89    for loop was already covered in another LO, these questions can be
    90    kept, but it will good if we add few more on while loop]]
    90    kept, but it will good if we add few more on while loop]]
    91 
    91 
    92 Larger Questions
    92 Larger Questions
    93 ----------------
    93 ----------------