Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python tuple and dictionary

my_new_dic = { 'England': 435, 'France': 12, 'Egypt': 31 }

new_tup = [(key, value) for key, value in my_new_dic.items()]
print(new_tup)
Source by pythonguides.com #
 
PREVIOUS NEXT
Tagged: #python #tuple #dictionary
ADD COMMENT
Topic
Name
4+5 =