Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Getting element from a list

$
0
0
Hi All,

I have a list:

[((5,4), 'South' , 1), ((4,5), 'West', 1)]


And I'm trying to get the co-ordinates out of it, but I have no idea how, any advice would be greatly appreciated.

My list is called successors and I've tried:

successors[0] 


but of course that just gets the whole of the first element. The list is defined as (co-ordinate, action, time)

Thanks

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>