dite para tupla
dict = { 'Geeks': 10, 'for': 12, 'Geek': 31 }
# Converting into list of tuple
list = [(k, v) for k, v in dict.items()]
Foolish Flatworm
dict = { 'Geeks': 10, 'for': 12, 'Geek': 31 }
# Converting into list of tuple
list = [(k, v) for k, v in dict.items()]