Skip to content

Instantly share code, notes, and snippets.

@Peilonrayz

Peilonrayz/example.py Secret

Last active Aug 28, 2019
Embed
What would you like to do?
def main(flavours):
sentinel = object()
flavours = iter(flavours)
flavour = next(flavours, sentinel)
if flavour is sentinel:
return
print(flavour, end='')
for flavour in flavours:
print(', ', end=flavour)
print('.')
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.