Good evening, to solve a part of the hw6 I have to remove some elements from the values of a dictionary, I'll make an example:
dic = { A : (1), B : (1, 2, 3), C : (1, 3, 5), D : (2, 3)}
this is my dictionary and I'd like to have it turned into:
new_dic = { A : (), B : (2, 3), C : (3, 5), D : (2, 3)}. (I removed all the 1s)
How could I do this?
Thank you in advance for your answers!
dic = { A : (1), B : (1, 2, 3), C : (1, 3, 5), D : (2, 3)}
this is my dictionary and I'd like to have it turned into:
new_dic = { A : (), B : (2, 3), C : (3, 5), D : (2, 3)}. (I removed all the 1s)
How could I do this?
Thank you in advance for your answers!