3 ms·
> all the "oh so clever" stuff you can do in Python. Oh come on, who doesn't love to see something like this? [print("fizzbuzz" if not x % 15 else "buzz"
by usrbinbash 3y ago
> all the "oh so clever" stuff you can do in Python.
Oh come on, who doesn't love to see something like this?
[print("fizzbuzz" if not x % 15 else "buzz" if not x % 5 else "fizz" if not x % 3 else x) for x in range(1, 101)]
- tgv 3y agoThat's readable, in contrast to class magic.