• Python question of the day

    Which of the following about dictionary keys in NOT correct?
     All keys in a dictionary must be unique
     Some built-in methods can be used as keys
     Another dictionary can be used as a key
     Complex numbers can be used as keys
    Explanation:
    A dictionary cannot be used as a key to a dictionary as the keys has to be immutable and hashable


    Top 100 python interview questions:






datai analytics