dic = {"python": 3, "c#": 12, "java": 19, "php": 8}
lst_tpl = list(dic.items())
print(lst_tpl)
print()
for item in lst_tpl:
print(item)
print()
for item in lst_tpl:
print(item[0], item[1])
'''
run:
[('python', 3), ('c#', 12), ('java', 19), ('php', 8)]
('python', 3)
('c#', 12)
('java', 19)
('php', 8)
python 3
c# 12
java 19
php 8
'''