-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpractice_24.py
More file actions
22 lines (16 loc) · 1.15 KB
/
Copy pathpractice_24.py
File metadata and controls
22 lines (16 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Create an empty dictionary. Allow 4 friends to enter their favorite language as value and use key as their names. Assume that the names are unique ..
# create a empty 'dict' ..
d = {}
name = input("Enter friends name: ") # input lena h as a name from user ..
lan = input("Enter language name: ") # input lena h as a language from user ..
d.update({name:lan}) # ye empty dict ko update krega using name or lan input ..
name = input("Enter friends name: ") # input lena h as a name from user ..
lan = input("Enter language name: ") # input lena h as a language from user ..
d.update({name:lan}) # ye empty dict ko update krega using name or lan input ..
name = input("Enter friends name: ") # input lena h as a name from user ..
lan = input("Enter language name: ") # input lena h as a language from user ..
d.update({name:lan}) # ye empty dict ko update krega using name or lan input ..
name = input("Enter friends name: ") # input lena h as a name from user ..
lan = input("Enter language name: ") # input lena h as a language from user ..
d.update({name:lan}) # ye empty dict ko update krega using name or lan input ..
print(d) # return update dict ..