On 1/30/06, ->Terry<- <[EMAIL PROTECTED]> wrote: > -----BEGIN PGP SIGNED MESSAGE-----
[snip] Try reducing your code to only the following: > > Here's the code: > - -------------------------- > #!/usr/bin/env python > suits = ["red ", "blue", "green", "yellow"] > ranks = ["ace", "two", "three", "four", "five", "six", "seven", > "EIGHT", "nine", "ten", "jack", "queen", "king"] > value = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13] > > for suit in suits: > for x, rank in enumerate(ranks): > cards.append([suit, rank, value[x], images[x]]) > And replace the last line by: print [suit, rank, value[x], x] You will see that "x" is not doing what you want it to inside images... As a hint, I'd suggest looking at writing for y, suit in enumerate(suits) and changing the index of images[x]. Good luck! André _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor