Return the type of a given value

Write a function using if statements that takes a value, and returns the type of that particular value. Example:

which_type(2) == 'integer' 
which_type("cookies, now!") == 'string'
which_type(False) == 'boolean'
which_type(42.0) == 'float'

Hint: be mindful of control flow

import unittest


class ReturnValueType(unittest.TestCase):
    def test_return_type(self):
        self.assertEqual(which_type(5), 'integer')
        self.assertEqual(which_type('squirrel'), 'string')
        self.assertEqual(which_type(4.2), 'float')
        self.assertEqual(which_type(True), 'boolean')