Skip to content

Instantly share code, notes, and snippets.

@zlalanne
Created March 6, 2014 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zlalanne/9396756 to your computer and use it in GitHub Desktop.
Save zlalanne/9396756 to your computer and use it in GitHub Desktop.
check next entry
values = ["value3", "value2", "value"]
length = len(values)
for ind, item in enumerate(values):
if ind + 1 != length:
if list[ind + 1] == "value":
print("Next one is the value")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment