• Python question of the day

    Which of the follwing 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


    Please send your answer here:




  • Top 100 Python Interview Questions
  • What is the difference between a list and a tuple?

  • Answer
  • What would be the output of executing the following code:
    a, b, c = (1, 2, 3, 4, 5, 6, 7, 8)[1:6:2]
    print(b)
  • Answer
  • What would be the output of executing the following code:

  • Answer
  • What would be the output of executing the following code:

  • Answer
  • Which of the following is a keyword in python?

  • Answer
  • What would be the output of executing the following code?

  • Answer
  • What would be the output of executing the following code?

  • Answer
  • Which the following functions can be used to convert an ndarray to a one-dimension array?

  • Answer
  • Which the following modules provides regular-expression functionality?

  • Answer
  • What is the output of executing the following code snippet:

  • Answer
  • What is the output of executing the following code snippet:

  • Answer
  • What is the output of executing the following code snippet:

  • Answer
  • What is the output of executing the statement: [ ] and 5

  • Answer
  • What is the output of executing the statement:

  • Answer
  • What is the return value of print()?

  • Answer
  • Which of the following can be used as a dictionary key?

  • Answer
  • What would be output of executing this code: print(True*2)?

  • Answer
  • Which code snippet will give this output: ['H', 'e', 'l', 'l', 'o']

  • Answer
  • Which of the following python statements will not be ignored by python interpreter...

  • Answer
  • Which of the following built-in function of python will return the physical memory address of the object being referenced?

  • Answer
  • Which of the following is not supported by python?

  • Answer
  • Which of the following python objects is immutable?

  • Answer
  • What is the output of
    1.0 // 2

  • Answer
  • Which open source framework for parallel and distributed Python can make numeric computations many times faster?

  • Answer
  • In python, executing round(7.5) gave 8 as output. What is the output of
    round(6.5)

  • Answer



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