Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
e**(pi*1j)+1 = 0 solution in Creative category for The Best Number Ever by veghadam1991
from math import e, pi
def checkio():
"""
The best number is 0! Why? It's very simple.
The proof:
Everybody knows that the best equation is e**(pi*1j)+1=0. An equation can be the best,
if left side and right side of the equation is best. So the best number is 0. QED.
"""
return int((0*(e**(pi*1j)+1)).real)
if __name__ == '__main__':
# These "asserts" using only for self-checking and not necessary for auto-testing
assert isinstance(checkio(), (int, float, complex))
Oct. 22, 2015