I have the following code:
G = {
'A': {('1', 2), ('C', 5)},
'B': {('C', 6), ('D', 1), ('E', 3), ('A', 2)},
'C': {('F', 8), ('A', 5), ('B', 6)},
'D': {('E', 4)},
'E': {('G', 9)},
'F': {('G', 7), ('C', 2)},
'G': {('E', 9), ('F', 7)}
}
Say I want to replace the nested dict key 'A' values with ('D', 7), ('E', 8) using a for loop, my approach was to append each of the tuple into a list and then G['A'] = list but this would give me 'A': {[('D', 7), ('E', 8)]} with brackets ([,]) within
Is there a way to append tuples into a dictionary such that without having brackets