A

Admin • 831.35K Points
Coach

Q. Which operator is used to compare both value and data type in Python?

  • (A) ==
  • (B) ===
  • (C) is
  • (D) !=
  • Correct Answer - Option(A)
  • Views: 8
  • Filed under category Python
  • Hashtags:

Explanation by: Admin
Python does not have === like JavaScript. '==' checks values, while 'is' checks object identity.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.