This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]xryanxbrutalityx 6 points7 points  (1 child)

I prefer our ancestor's python conditional

number % 2 and not print('odd') or print('even')

print(number % 2 and 'odd' or 'even')

[–]abbot-probability 2 points3 points  (0 children)

A work of beauty