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:
# Dictionary Methods
marks = {}.fromkeys([
'Math'
,
'English'
,
'Science'
],
0
)
print(marks)
print(list(marks.keys()))
Output:
{Math: 0, English: 0, Science: 0}
[Math, English, Science]