Skip to content

Instantly share code, notes, and snippets.

@Cyril-Pop
Created August 25, 2020 05:02
Show Gist options
  • Save Cyril-Pop/287148b2abfdcfefa8666537161057ad to your computer and use it in GitHub Desktop.
Save Cyril-Pop/287148b2abfdcfefa8666537161057ad to your computer and use it in GitHub Desktop.
appendPairList.py
lst = list(range(16))
#lst = IN[0]
print lst
out = []
for idx, x in enumerate(lst):
if idx > 0:
out.append([lst[idx - 1], x])
OUT = out
print OUT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment