[Tutor] Set values from list as per user input

R. Alan Monroe amonroe at columbus.rr.com
Wed May 21 15:39:07 CEST 2014


> take value 15 from list

Hint: use square brackets to choose a particular item from a list.

test = ['first', 'second', 'third']

test[0] would refer to 'first' for example.

Alan



More information about the Tutor mailing list