Q. What is the output of the following code?

Code:
x = None
print(x is None)
  • (A) True
  • (B) False
  • (C) None
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (A) True
Explanation: `is` checks for identity. `x` is assigned to `None`, so it returns True.
Explanation by: Mr. Dubey
`is` checks for identity. `x` is assigned to `None`, so it returns True.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
117
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
95%
Success Rate