• Python question of the day

    Which of the following can be used as a dictionary key?
     complex
     set
     list
     dictionary
    Explanation:
    In python, set, list and dictionary cannot be used as a key to dictionary. Tuple can sometimes be used as a key to dictionary. Complex number can be used as a key to dictionary.


    Top 100 python interview questions:


  • python bootcamp 2021
datai analytics