[Tutor] Binary 2 text & text 2 binary

R. Alan Monroe amonroe at columbus.rr.com
Sat Sep 24 05:08:41 CEST 2005

> I thought lists would be the best but I really don't know how to use
> them

They're easy. Just put stuff in square brackets with commas between.

mycoollist = [1,5,9,3,6,9,2,6]
mystringlist = ['a', 'u', 'e', 'b', 'd', 'h', 'q', 't']

Can you predict what this code will do?

print mycoollist[0]


More information about the Tutor mailing list