Code viewer for World: Booleans
"""
Topic: Variables and Data Types: Booleans
Purpose: Explore True and False values in Python
Output: Displays boolean values and their types in the terminal
"""

# -----------------------------
# 1. What is a Boolean?
# -----------------------------
# A Boolean is a type of variable that can only be True or False.
# It's like a light switch: it can be ON (True) or OFF (False).

# -----------------------------
# 2. Creating Boolean variables
# -----------------------------
is_student = True     # The value is True (Notice Upper Case T)
has_pet = False       # The value is False (Notice Upper Case F)

# -----------------------------
# 3. Printing Boolean variables
# -----------------------------
print("Is student?", is_student)   # prints: Is student? True
print("Has a pet?", has_pet)       # prints: Has a pet? False

# -----------------------------
# 4. Checking types
# -----------------------------
print("Type of is_student:", type(is_student)) # <class 'bool'>
print("Type of has_pet:", type(has_pet))       # <class 'bool'>

# -----------------------------
# 5. Notes
# -----------------------------
# 1. Booleans are useful for asking yes/no questions.
# 2. They help computers make decisions which we shall look at later on.
# 3. In Python, True and False always start with a capital letter.