Python - Change the signs of elements of tuples in a list
Given a dual Tuple list, the task is to write a python program to convert second element to negative magnitude of each tuple and first element to positive magnitude of each tuple. Input : test_list = [(3, -1), (-4, -3), (1, 3), (-2, 5), (-4, 2), (-9, -3)] Output : [(3, -1), (4, -3), (1, -3), (2, -5)