Write and test a function to meet this specification:
squareEach(nums) nums is a LIST of numbers. Modifies the list by squaring each entry.
def squareEach(nums): for number in nums: number = number ** 2 return number def main(): nums = [3,4] print(squareEach(nums)) main()
The output in this case is 9... I tried moving the return statement back one tab,
but then the output would be 16. I need it to print both 9 and 16.