Making The Dictionary In Python

Introduction

 
In this blog, I am going to explain about making the dictionary in Python. I will create the dictionary and display it in the Run module.
 
Software Requirement
 
Python 3.5.2.
 
Simple Programming
  1. print("Welcome To c#corner.......")  
  2. print("Dictionary :")  
  3.   
  4. Greetings={}  
  5. Greetings["Morning"]="Good Morning..."  
  6. Greetings["Afternoon"]="Good Afternoon..."  
  7. Greetings["Evening"]="Good Evening..."  
  8. Greetings["Night"]="Good Night..."  
  9.   
  10. print(Greetings)  
  11. print("%s" % Greetings["Night"])  
  12. print("%s" % Greetings["Afternoon"])  
Explanation
 
In this blog, I will explain about making the dictionary in Python. It will be used to see it in the Run Window.
 
Output
 
Output