In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by 4, if the element is odd you should multiply by 4 then add 2. The output should be a list of numbers that is the result of applying that logic to the input list. You should not round any decimals in the output. Zero should be counted as an even integer.
--------
Question: [33, 16, 78, 62, -22, -40, 27]

Answer: [134, 4.0, 19.5, 15.5, -5.5, -10.0, 110]


Question: [-41, -14, 58, -95, 78, 48, -22, -9]

Answer: [-162, -3.5, 14.5, -378, 19.5, 12.0, -5.5, -34]


Question: [-74, -78, -93, -29, 80, -26, 79, 35, 55, -62, 31]

Answer:
[-18.5, -19.5, -370, -114, 20.0, -6.5, 318, 142, 222, -15.5, 126]