In this kata, your task is to create a function that takes a single list as an argument and returns a flattened list. The input list will have a maximum of one level of nesting (list(s) inside of a list).

```python
# no nesting
[1, 2, 3]

# one level of nesting
[1, [2, 3]]
```
---

# Examples

```python
>>> flatten_me(['!', '?'])
['!', '?']

>>> flatten_me([1, [2, 3], 4])
[1, 2, 3, 4]

>>> flatten_me([['a', 'b'], 'c', ['d']])
['a', 'b', 'c', 'd']

>>> flatten_me([[True, False], ['!'], ['?'], [71, '@']]) 
[True, False, '!', '?', 71, '@']
```

Good luck!

Difficulty: EASY
Starter code: def flatten_me(lst):
	

Solutions:
def flatten_me(lst):
	res = []
	for l in lst:
		if isinstance(l, list):
			res.extend(l)
		else:
			res.append(l)
	return res


def flatten_me(nput):
	output = []
	for itm in nput:
		if isinstance(itm, list):
			output += flatten_me(itm)
		else:
			output += [itm]
	return output


def flatten_me(lst):
	res = []
	for i in lst:
		if type(i) is list:
			res += i
		else:
			res.append(i)
	return res


def flatten_me(a):
	result = []
	for i in a:
		if isinstance(i, list):
			result += flatten_me(i)
		else:
			result.append(i)
	return result


def flatten_me(lst):
	from itertools import chain
	return list(chain.from_iterable(([el] if not isinstance(el, list) else el for el in lst)))


def flatten_me(lst):
	result = []
	for item in lst:
		if isinstance(item, list):
			result.extend(item)
		else:
			result.append(item)
	return result


def flatten_me(lst):
	res = []
	for x in lst:
		if type(x) == list:
			for y in x:
				res.append(y)
		else:
			res.append(x)
	return res


def flatten_me(lst):
	out = []
	for item in lst:
		if type(item) is list:
			out += (x for x in item)
		else:
			out.append(item)
	return out


def flatten_me(lst):
	return [v for sub in [e if type(e) == list else [e] for e in lst] for v in sub]