[Tutor] How to print certain elements
Keith Winston
keithwins at gmail.com
Tue Jan 21 15:27:56 CET 2014
If you are playing around at the Python prompt (the >>>), which you
really should be to get the hang of this stuff, you might notice that
the bracket indexing that you and everyone is talking about works both
on strings (Y) and on lists (X: in this case, a list of strings). They
may not behave the same way as you expect. Try to imagine what Y[13]
or X[3][3] would get you, and why.
--
Keith
More information about the Tutor
mailing list