It's a dict practice question. Please help me

Asked 2 weeks ago, Updated 2 weeks ago, 1 views

dict = {}

dict['Naver'] = '[https://www.naver.com/] (https://www.naver.com/)')

dict['Next'] = '[https://www.daum.net/] (https://www.daum.net/)')

dict['Google'] = '[https://www.google.com/] (https://www.google.com/)')

"Code" ("Naver")

dict
output value: {'Google':'https://www.google.com/','':https://www.daum.net/'}

I think it's a problem related to dictionary data type

What code should be included in the 'code' to get the output value?

python

2022-09-20 10:27

1 Answers

a = {}
a[Naver] = 1
a['Next'] = 2
a.pop ("Naver")
print(a)


2022-09-20 10:27

If you have any answers or tips


© 2022 pinfo. All rights reserved.