I have a list containing some coordinates ordered as tuples:
list = [(316852,4.99246e+06), (316858,4.99244e+06), (316880,4.99246e+06), (316863,4.99248e+06), (316852,4.99246e+06)]
and I would like to get its elements by group of 2. The result expected is something like this:
(316852,4.99246e+06), (316858,4.99244e+06)
(316858,4.99244e+06), (316880,4.99246e+06)
(316880,4.99246e+06), (316863,4.99248e+06)
(316863,4.99248e+06), (316852,4.99246e+06)
Any idea on how to obtaining this?