A

Admin • 832.27K Points
Coach

Q. What is the use of the `is` keyword in Python?

  • (A) Checks for equality
  • (B) Checks for identity
  • (C) Checks for membership
  • (D) Declares variable type
  • Correct Answer - Option(B)
  • Views: 17
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

`is` checks if two variables refer to the same object.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.