Skip to content

Commit c667242

Browse files
authored
Dictionary Use
Use will take name of the persons included in dictionary. Program will show the items under them.
1 parent f581e7e commit c667242

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Use of dictionary

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
d1={"Shyam":"Honey", "Imli":"Lichi", "Raj":"Mango", "Marie": "Coco"}
2+
print(d1)
3+
a=input("Enter the Word:")
4+
b=a.capitalize()
5+
print(b,"=",d1[b])

0 commit comments

Comments
 (0)