16,311 questions
21,782 answers
573 users
dict = {} if not dict: print('Empty') else: print('Not empty') ''' run: Empty '''
dict = {} if (len(dict) == 0): print('Empty') else: print('Not empty') ''' run: Empty '''