1
CPU components include the Control Unit (CU), Memory Unit (MU), and Arithmetic Logic Unit (ALU). The logical unit enables the computer to make decisions based on conditions.
2
The 'if' statement is used to control the execution flow of a program based on whether an expression evaluates to true or false.
3
Python relies strictly on indentation (typically 4 spaces or a tab) to define code blocks or suites, rather than curly braces.
4
The 'else' statement is used in conjunction with 'if' to execute alternative code when the primary condition is false, improving performance by avoiding redundant checks.
5
Nested if statements allow you to place an 'if' condition inside another 'if' block to evaluate secondary conditions.
6
The 'elif' (else if) statement allows for multiple conditions to be sequentially checked before falling back to a default 'else' block.