Skip to content

Chapter 3: Data Types

Python supports various data types, including:

  • Integers: Whole numbers, e.g., 42
  • Floats: Decimal numbers, e.g., 3.14
  • Strings: Text, e.g., "Hello"
  • Booleans: True or False, e.g., True

Understanding data types is crucial as it influences how operations are performed on values.