Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion exercise/dictionary.py
Original file line number Diff line number Diff line change
@@ -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])
#print the Dictionary Value according to the keys as an input
print(myword[tia1])