eLearning
Tutorials
Programs
Interview Questions
Technical Questions
C Language
C++
JAVA
HTML & CSS
PHP
AJAX
J2EE
SQL
jQuery
Go back to Home
Our Placements
Tutorials
Programs
Interview Questions
Technical Questions
Live Training
Our Placements
Associated Colleges
Our Recruiters
Back
C Language
C++
JAVA
HTML & CSS
PHP
AJAX
J2EE
SQL
jQuery
Programs
Home
Programs
Python
Dictionary
Programs - Python -
Dictionary
Program:
# items() method returns a list of tuple pairs (Keys, Value)
Dict = {
'Tim'
:
18
,
'Charlie'
:
12
,
'Tiffany'
:
22
,
'Robert'
:
25
}
print(
"Students Name: %s"
% list(Dict.items()))
Output:
Students Name: [(Tim, 18), (Charlie, 12), (Tiffany, 22), (Robert, 25)]