Write a function that takes an integer in input and outputs a string with currency format.

Integer in currency format is expressed by a string of number where every three characters are separated by comma. 

For example:

```
123456 --> "123,456"
```

Input will always be an positive integer, so don't worry about type checking or negative/float values.

Source: codewars | Difficulty: EASY
Tags: Fundamentals

Starter code: def to_currency(price):
	

Solutions:
def to_currency(price):
	return '{:,}'.format(price)


def to_currency(price):
	return format(price, ',d')


to_currency = '{:,}'.format


def to_currency(price):
	return ''.join((',' + x[1] if x[0] % 3 == 0 and x[0] else x[1] for x in enumerate(str(price)[::-1])))[::-1]


def to_currency(price):
	price = str(price)[::-1]
	x = [price[i:i + 3] for i in range(0, len(price), 3)]
	return ','.join(x)[::-1]


def to_currency(price):
	return f'{price:,}'


def to_currency(price):
	return '{:,.3f}'.format(price).rstrip('0').rstrip('.')


def to_currency(price):
	p = str(price)
	return p if len(p) <= 3 else to_currency(p[:-3]) + ',' + p[-3:]