Skip to content

Instantly share code, notes, and snippets.

@Peilonrayz Peilonrayz/ Secret
Last active Aug 28, 2019

What would you like to do?
def main(flavours):
sentinel = object()
flavours = iter(flavours)
flavour = next(flavours, sentinel)
if flavour is sentinel:
print(flavour, end='')
for flavour in flavours:
print(', ', end=flavour)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.