On Mon, May 5, 2014 at 9:04 PM, Scott W Dunning <scott....@cox.net> wrote: > > On May 1, 2014, at 5:30 AM, Steven D'Aprano <st...@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. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor