Return the percentage of minutes an hour as a float

Take your previous percentage function, but this time return the percentage as a float type. Round to 1 decimal place.

return_percentage(60) == 100.0
return_percentage(30) == 50.0
import unittest


class ReturnAFloatTest(unittest.TestCase):
    def test_return_a_float(self):
        self.assertEqual(return_float(30), 50.0)
        self.assertEqual(return_float(12), 20.0)
        self.assertEqual(return_float(42), 70.0)
        self.assertEqual(return_float(60), 100.0)