Skip to content

Instantly share code, notes, and snippets.

@hamdyaea
Created November 18, 2020 21:06
Show Gist options
  • Save hamdyaea/437efb90d53eac2e4d4302c824786b38 to your computer and use it in GitHub Desktop.
Save hamdyaea/437efb90d53eac2e4d4302c824786b38 to your computer and use it in GitHub Desktop.
mylist = [["hamdy","champion","hunter"],["Mininouille","chachat", "bebounet"],["ps5","xbox","fortnite"],["babou","xbox","mimoune"]]
for previous, current in zip(mylist, mylist[1:]):
if previous[1] == current[1]:
print(current[0])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment