Dictionary to list
Converts a dictionary to a list of tuples.
- Use
dict.items()
andlist()
to get a list of tuples from the given dictionary.
Converts a dictionary to a list of tuples.
dict.items()
and list()
to get a list of tuples from the given dictionary.