how to search whether key is present or not in a big program in python dictionary

前端 未结 0 1663
眼角桃花
眼角桃花 2020-12-04 11:53

I have written the below code and searching the key:

alphabet={\'A\':[\'Ashish\',\'thanks\'], \'b\':[\'bcall\']} alphabet[\'c\']

output:- key error

But

相关标签:
回答
  • 消灭零回复
提交回复
热议问题