A

Admin • 832.27K Points
Coach

Q. What is the output of the following code?

Code:
x = None
print(x is None)
  • (A) True
  • (B) False
  • (C) None
  • (D) Error
  • Correct Answer - Option(A)
  • Views: 21
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

`is` checks for identity. `x` is assigned to `None`, so it returns True.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.