Contact: aviboots(AT)netvision.net.il
31,094 questions
40,775 answers
573 users
dic = {"python": 1, "c#": 2, "java": 3, "php": 7} tpl_lst = list(dic.items()) for item in tpl_lst: print(item) ''' run: ('java', 3) ('php', 7) ('python', 1) ('c#', 2) '''
dic = {"python": 1, "c#": 2, "java": 3, "php": 7} tpl_lst = list(dic.items()) for item in tpl_lst: print(item[0], item[1]) ''' run: java 3 python 1 c# 2 php 7 '''