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
- print("Welcome To c#corner.......")
- print("Dictionary :")
-
- Greetings={}
- Greetings["Morning"]="Good Morning..."
- Greetings["Afternoon"]="Good Afternoon..."
- Greetings["Evening"]="Good Evening..."
- Greetings["Night"]="Good Night..."
-
- print(Greetings)
- print("%s" % Greetings["Night"])
- 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.