R

Rajeev Malhotra • 3.97K Points
Extraordinary

Q. What is the output of the following code?

Code:
True = False
while True:
    print(True)
    break
  • (A) True
  • (B) False
  • (C) Error
  • (D) None
  • Correct Answer - Option(C)
  • Views: 103
  • Filed under category Python

Explanation by: Rajeev Malhotra
True is a keyword and its value cannot be changed.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics