Possible Duplicate:
dictionary and stack in python problem
s = [((5, 4), 'South', 1), ((4, 5), 'West', 1)]
I want to put the (5,4) and (4,5) in to the stack.
stack is already implemented in a file...
so I am using :
stack = search.Stack()
Now I can use push and pop for stack.
How to get the (5,4) and (4,5) from the list. I want to make a general form . The elements in s can be more than 2.