[Tutor] Final review

Danny Yoo dyoo at hashcollision.org
Tue May 6 19:21:33 CEST 2014


On Mon, May 5, 2014 at 9:04 PM, Scott W Dunning <scott.w.d at cox.net> wrote:
>
> On May 1, 2014, at 5:30 AM, Steven D'Aprano <steve at pearwood.info> wrote:
>
> Awesome, thanks everyone!  I understand lists a lot better now.
>
> I have another question.  I don’t understand why below would give an error?
>
>>>>  greeting = 'Hello World’
>>>>  greeting [len(greeting)]


Hi Scott,

Question: what do you expect to see?

Also, you may want to try a smaller example that still demonstrates
the problem.  For example, consider the staccato greeting "hi", and
work through the scenario.


More information about the Tutor mailing list