Posts by Manuel Simões • 125 points
2 posts
-
8
votes1
answer478
viewsQ: Match all coordinates x, y, z from a list of tuples
I have the following list with several points: [(14, 9, 7), (11, 1, 20), (1, 1, 7), (13, 9, 1), (9, 13, 4), (20, 1, 4), (17, 6, 8), (14, 10, 1), (14, 2, 17), (7, 20, 7)] Each element of the list is…
-
4
votes1
answer918
viewsQ: Dictionary reordering, exchanging values for keys
I have the following dictionary: tests_dict = {'test 1': ['Manuel', 'Mariana', 'Filipa'], 'test 2': ['Manuel', 'Filipa', 'Mariana'], 'test 3': ['Mariana', 'Manuel', 'Filipa']} What I need is for the…