You have to create a function named reverseIt.

Write your function so that in the case a string or a number is passed in as the data , you will return the data in reverse order. If the data is any other type, return it as it is.


Examples of inputs and subsequent outputs:
```
"Hello" -> "olleH"

"314159" -> "951413"

[1,2,3] -> [1,2,3]
```

Difficulty: EASY
Starter code: def reverse_it(data):
	

Solutions:
def reverse_it(data):
	if type(data) in [int, str, float]:
		return type(data)(str(data)[::-1])
	return data


def reverse_it(data):
	t = type(data)
	return t(''.join(reversed(str(data)))) if t in [str, int, float] else data


def reverse_it(data):
	return data if any((t is type(data) for t in [dict, bool, list])) else type(data)(str(data)[::-1])


def reverse_it(data):
	t = type(data)
	if t not in (str, float, int):
		return data
	return t(str(data)[::-1])


def reverse_it(data):
	return type(data)(str(data)[::-1]) if isinstance(data, (str, int, float)) else data


def reverse_it(data):
	return data[::-1] if isinstance(data, str) else int(str(data)[::-1]) if isinstance(data, int) and (not isinstance(data, bool)) else float(str(data)[::-1]) if isinstance(data, float) else data


def reverse_it(data):
	if type(data) == str:
		return data[::-1]
	elif type(data) == int:
		return int(str(data)[::-1])
	elif type(data) == float:
		return float(str(data)[::-1])
	else:
		return data


def reverse_it(data):
	if type(data) == str:
		string = data[::-1]
		return string
	elif type(data) == int:
		integer = int(str(data)[::-1])
		return integer
	elif type(data) == float:
		floater = float(str(data)[::-1])
		return floater
	elif type(data) == abs:
		abso = abs(str(data)[::-1])
		return floater
	else:
		return data
reverse_it('Hello')
reverse_it(12345)
reverse_it(1231.123213)
reverse_it([1, 2, 3, 4])