i have a list of tuples:
points = [(1, 2), (1, 5), (2, 5), (3, 3), (3, 7), (6, 5), (9, 9)]
when i try to convert it to a dictionary:
dictionary = dict(points)
the result i get is:
{1: 5, 2: 5, 3: 7, 6: 5, 9: 9}
its removing the 1:5 and 3:3 points.
How do i get to have all the points? the desired outcome is :
{1: 2, 1: 5, 2: 5, 3: 3, 3: 7, 6: 5, 9: 9}
thanks in advance