Contact: aviboots(AT)netvision.net.il
39,844 questions
51,765 answers
573 users
tplList = [(-2, 3), (5, 4), (7, -9), (-1, 6)] tplList = [(abs(val[0]), -1 * abs(val[1])) for val in tplList] print(tplList) ''' run: [(2, -3), (5, -4), (7, -9), (1, -6)] '''