Convert integers to binary as simple as that. You would be given an integer as a argument and you have to return its binary form.
To get an idea about how to convert a decimal number into a binary number, visit here.

**Notes**: negative numbers should be handled as two's complement; assume all numbers are integers stored using 4 bytes (or 32 bits) in any language.

Your output should ignore leading 0s.

So, for example:
```python
to_binary(3)=="11"
to_binary(-3)=="11111111111111111111111111111101"
```

*Be Ready for Large Numbers. Happy Coding ^_^*

Source: codewars | Difficulty: EASY
Tags: Bit manipulation

Fundamentals

Starter code: def to_binary(n):
	

Solutions:
def to_binary(n):
	return '{:0b}'.format(n & 4294967295)


def to_binary(n):
	return bin(n if n >= 0 else 2 ** 32 + n)[2:]


def to_binary(n):
	return bin(n % 2 ** 32)[2:]


def to_binary(n):
	return format(n & 4294967295, 'b')


def to_binary(n):
	n = n & 4294967295
	return bin(n)[2:]


to_binary = lambda n: bin(n + 4294967296 * (n < 0))[2:]


import numpy

def to_binary(n):
	return numpy.binary_repr(n) if n >= 0 else numpy.binary_repr(n, width=32)


def to_binary(n):
	if n < 0:
		return bin(n & 8589934591)[3:]
	return bin(n)[2:]