How do I get integers from a tuple in Python?
int1, int2 = tuple
The other way is to use array subscripts:
int1 = tuple[0]
int2 = tuple[1]
This is useful if you find you only need to access one member of the tuple at some point.
The third way is to use the new namedtuple type:
from collections import namedtuple
Coordinates = namedtuple('Coordinates','x,y')
coords = Coordinates(46,153)
print coords
print 'x coordinate is:',coords.x,'y coordinate is:',coords.y