Data Types: Basic Data Types Numeric Types Integer types (byte, short, int, long) Type Bits Bytes Notes Range byte 8 1 Automatically promotes to int during operations -128 to +127 short 16 2 Cannot convert directly to byte, promotes to int in calculations -32768 to +32767 int 32 4 Default integer ty...
Control Flow Mechanisms Decision making within programs relies on evaluating expressions to determine execution paths. The fundamental tools for this are conditional branches. Basic If-Else Structures The if statement executes a block only when the condition resolves to true. This supports binary de...
List Fundamentals Python lists are dynamic, ordered collections enclosed in square brackets []. They support heterogeneous data types and maintain insertion order while allowing in-place modification. data_pool = [42, "config_str", 3.14, True] Retrieval and Search Mechanisms Index Access a...