0_0 # Python >= 3.6 is required
Highly cursed, yet wildly creative way of asserting the language version.
Support for underscores in numeric literals landed in 3.6 (PEP-515), < 3.6 chokes on the underscore and raises a syntax error instead.
"What the fuck Python?"
https://github.com/satwikkansal/wtfpython
Along with the corresponding HN discussion:
https://news.ycombinator.com/item?id=31566031 (450 points, 153 comments)
Nothing beats this guy though: 0_0
"What the fuck Python?"
https://github.com/satwikkansal/wtfpython
Along with the corresponding HN discussion:
https://news.ycombinator.com/item?id=31566031 (450 points, 153 comments)