def contains(dict, key): return key in dictdict={}dict['a']=1dict['b']=2dict['c']=3print(contains(dict, 'a')) # Trueprint(contains(dict, 'd')) # False
No comments:
Post a Comment