SyntaxFix
Write A Post
Hire A Developer
Questions
has_key has been deprecated in Python 3.0. Alternatively you can use 'in'
graph={'A':['B','C'], 'B':['C','D']} print('A' in graph) >> True print('E' in graph) >> False