What is Nostr?
Tekromancer /
npub13e3…lhjj
2024-05-07 23:24:25

Tekromancer on Nostr: Next time you have a job interview where someone wants you to write fizzbuz... ``` ...

Next time you have a job interview where someone wants you to write fizzbuz...

```
#!/usr/bin/env python

from itertools import count, cycle

def fizzbuzz():
blank = [""]
yield from (
a + b or c
for a, b, c in zip(cycle((blank * 2 + ["fizz"])), cycle((blank * 4 + ["buzz"])), count(1))
)

lol = fizzbuzz()
for i in range(20):
print(next(lol))
```

If that doesn't short circuit the live coding portion of the day, you don't want to work there anyway.
Author Public Key
npub13e30hnrpg768tslwwjveafaazctk7ghf9va2se2k4ygr8cj24veshclhjj