How to get particular element from list of tuples

后端 未结 0 393
不知归路
不知归路 2021-02-18 16:32

I have this list of tuples: l1 = [(1, 8), (6, 8), (8, 7), (2, 6)] I want to compare 1st element of each tuple with 1st element of next tuple How can I access the next tuple\'s 1

相关标签:
回答
  • 消灭零回复
提交回复
热议问题