# Drink-Up and share your favorite python one-liners

• Aug 13, 2013 · 7:00 PM

Come kick back with python friends over beer.

• ##### Andy D.

I've secured us some space near the front

August 13, 2013

• ##### Alim S. G.

I am here, but I don't see anyone I recognize.

August 13, 2013

• ##### Alim S. G.

Found 'em. Table's packed so started another.

August 13, 2013

• ##### Paul L.

print(' '.join('Hope|to|be|there|by|8:30pm'.split('|')))

August 13, 2013

• ##### Andy D.

You've picked a UCB show over us, haven't you?

August 13, 2013

• ##### James P.

from sys import version_info
assert version_info.major == 3

from itertools import chain, combinations, count
from functools import reduce

# the one-line:
fb = lambda terms: (lambda terms: ({x%d:w for d,w in terms}.get(0,str(x)) for x in count(1)))(tuple((lambda dw:(reduce(mul,dw[0]),reduce(add,dw[-1])))(list(zip(*x))) for x in chain.from_iterable(combinations(sorted(terms.items()),s) for s in range(1,len(terms)+1))))

from itertools import islice
print('\n'.join(islice(fb({3:'fizz', 5:'buzz', 7:'baz'}),None,20)))

August 13, 2013

• ##### James P.

from sys import version_info
assert version_info.major == 3 and version_info.minor >= 3

x = [(1,2,3), 'abc', range(3)]

# the one-line:
list(None for x in x if (yield from x) and False)

August 13, 2013

• ##### venkatanathen

Thank you

August 12, 2013

• ##### Steven

Tomorrow night is also reddit's weekly meetup at peculiar- it's going to be packed.

August 12, 2013

• ##### mark p.

how late do you think it will go?

August 12, 2013

### 19 went

• ##### Yeshwanth Y.
• A former member
• A former member

### New York, NY

Founded Jun 13, 2006

#### People in this Meetup are also in:

• ##### New York Software Engineers (NYSE)

6,319 Software Engineers

• ##### nyhacker

6,143 Hackers

• ##### Django-NYC

2,533 Djangonauts

• ##### Girl Develop It NYC

10,242 Nerdettes

• ##### UX + Data

2,746 Members

• ##### SQL NYC, The NoSQL & NewSQL Database Meetup

13,666 Data Enthusiasts