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?
- boolean m=True
- boolean m='True'
- boolean m="True"
- none of them
Related Questions
Which of the following is a mutable data type in Python?
- Strings
- Tuples
- Lists
- Integers
Which of the following data types does not allow duplicate values in Python?
- Lists
- Dictionaries
- Tuples
- Sets
State whether the following statements are True or False:
- Comments are executable statements.
- The import statements are used to include modules or libraries into the program to accomplish tasks.
- Operators are the symbols or tokens to perform various mathematical or logical operations on data.
- All whole numbers (positive or negative numbers) without a decimal point are said to be float type numbers.
- The tuple is an ordered set of elements containing one or more data items of the same or different types.
- In Python, we cannot assign the same integer value to different variables.
- Python is case sensitive and thus it treats uppercase and lowercase letters differently.
- Boolean constants are special literals and represent only two Boolean values.
Name the following constants as defined in Python:
Constants Name of the constant 0.00345 'A' True -999