• Python question of the day

    Which of the following will NOT create an empty dictionary?
     dict1 = { }
     dict1 = dict ( )
     dict1 = {'': ''}
     dict1 = dict.__new__(dict, (), {})
    Explanation:
    dict1 = {'': ''} will create a dictionary, but it's not empty


    Top 100 python interview questions:


  • python bootcamp 2021
datai analytics