Trying to replace an tuple in a list which is in a dictionary
I have a piece of code where I’m trying to replace an item in a list which is in a dictionary. The code runs through the various tuples in the list and compares them, but doesn’t replace it.
How to convert a tuple which includes a [string] to a dictionary item
I have this list:
A list of tuples from dictionary where values are lists
I need to convert a dictionary in a form {1: [‘a’, ‘b’, ‘c’, ‘d’], 2: [‘e’, ‘f’, ‘g’, ‘h’]} to a list of tuples in a form [(1, ‘a’, ‘b’, ‘c’, ‘d’), (2, ‘e’, ‘f’, ‘g’, ‘h’)]