[Tutor] printing multiple values from a list in one command

Dragonfirebane at aol.com Dragonfirebane at aol.com
Sun Jun 6 01:27:03 EDT 2004


To clarify:

When I try to write the code such that when the text to be translated is in 
the lowercase (the first half of ascii_letters), the program should print the 
corresponding value in binary, it either says 'list index out of range' (if 
char in alphabet[1-26]:) or 'list indices must be integers' (if char in 
alphabet[0,1,2,3,4,5,6,etc.]).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20040606/182c6ba0/attachment.html


More information about the Tutor mailing list