KnowledgeBoat Logo
|

Robotics & Artificial Intelligence

Boolean data is used to test a particular condition i.e., True or False.

Which of the following is the correct representation?

  1. boolean m=True
  2. boolean m='True'
  3. boolean m="True"
  4. none of them

Python Funda

2 Likes

Answer

none of them

Reason — In Python, there is no 'boolean' keyword used while declaring a variable. The Boolean values True or False are assigned directly to a variable (e.g., m = True) without enclosing them in quotes. Hence, none of the given representations are correct.

Answered By

1 Like


Related Questions