Python Program to Convert Tuple to Dictionary

Write a Python program to Convert Tuple items to the dictionary. In Python, we can use the dict function to convert the tuple to dictionary. By default, it will assign the first item as the key and the second one as the dictionary value. tup = ((1, ‘x’), (2, ‘y’), (3, ‘z’)) print(tup) print(“Data Type … Read more