Object-Oriented Programming (OOP)
4. Introduction to Data Types
4.7. Boolean
is_student = True
print(f"Is student? {is_student}")
# String
name = "Alice"
print(f"Name: {name}")
# Character-like (string of length 1)
initial = "A"
print(f"Initial: {initial}")
Output
Age: 25
Height: 5.9 feet
Is student? True
Name: Alice
Initial: A