Skip to content

Commit ec89ae3

Browse files
Merge pull request seeditsolution#349 from Shanu899/patch-2
Dictionary Use
2 parents 3373440 + c667242 commit ec89ae3

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)