You can use the dict() constructor to create dictionaries from other data types such as lists or tuples. For example, if you have a list of tuples like this: my_list = [(‘key1’, ‘value1’), (‘key2’, ‘value2’)], you can use the dict() constructor to create a dictionary out of it like so:
my_dict = dict(my_list).