Skip to main content
added 98 characters in body
Source Link

Python 3, 2828 24 bytes

-4 bytes thanks to @Manny Queen

lambda n:int(n and abs(n)//n)

Try it online!Try it online!

Python 3, 28 bytes

lambda n:int(n and abs(n)/n)

Try it online!

Python 3, 28 24 bytes

-4 bytes thanks to @Manny Queen

lambda n:n and abs(n)//n

Try it online!

Source Link

Python 3, 28 bytes

lambda n:int(n and abs(n)/n)

Try it online!