I started recently learning programming Python and I am running into a problem. I tried to solve this myself, unsuccessfully.

I have a dictionary with a formatted string as a key and tuples with 3 values per key.

`dict1 = { “a;2;1;1;” : ( 1, 2, 3), “a;3;2;1;” : ( 4, 5, 6)}`

I want to create a new dictionary dict2 with all keys from dict1 and only the third value from each key.

`dict2 = { “a;2;1;1;” : 3, “a;3;2;1;” : 6}`

In these examples I used only two key-value pairs, the real dictionary has ten thousand of key-value pairs.

Any suggestions?