Skip to content

Commit 8ca621b

Browse files
dictionary creation and find the value by the user input.
1 parent 379ae7c commit 8ca621b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

task.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# create a dictionary and take input from the user and return the meaning of the word from the dictionary.
2+
3+
D = {"dhruv":"14.01.2000",
4+
"ram":"15.09.1998",
5+
"shyam":"17.06.2001",
6+
"dheerendra":"12.02.1995"}
7+
name = input("enter the name :")
8+
print(D[name])

0 commit comments

Comments
 (0)