iterate over list and select 2 values together python

Solutions on MaxInterview for iterate over list and select 2 values together python by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "iterate over list and select 2 values together python"
Lukas
31 Jan 2020
1>>> lis = (669256.02, 6117662.09, 669258.61, 6117664.39, 669258.05, 6117665.08)
2>>> it = iter(lis)
3>>> for x in it:
4...     print (x, next(it))
5...     
6669256.02 6117662.09
7669258.61 6117664.39
8669258.05 6117665.08
9