• 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:



  • Apply for an intership with Datai Analytics by filling your email, name and phone number