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])