From cdbb0261c0c7902a7be585aaa20a074026523825 Mon Sep 17 00:00:00 2001 From: shubhambhawsar-5782 <51023390+shubhambhawsar-5782@users.noreply.github.com> Date: Wed, 30 Sep 2020 22:46:13 +0530 Subject: [PATCH] Update dictionary.py --- exercise/dictionary.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/exercise/dictionary.py b/exercise/dictionary.py index 0fe7ec6..a5b34be 100644 --- a/exercise/dictionary.py +++ b/exercise/dictionary.py @@ -1,10 +1,14 @@ +#Define the Dictionary myword = {"centos": "Open source server distribution.", "ubuntu": "Open source desktop distribution", "redhat": "Propriatory OS.", "arch": "Open Source desktop and client distribution." } +#print all the keys of Dictionary print(myword.keys()) print("Check Keys name from above line.") print("Enter your choice name:", end='') +#To take an input from the user tia1 = input() -print(myword[tia1]) \ No newline at end of file +#print the Dictionary Value according to the keys as an input +print(myword[tia1])