Problem solving, program structure, syntax and semantics
Programming begins by understanding the problem, designing a step-by-step algorithm, implementing it in code, then testing and debugging. Algorithms may first be written as pseudocode or drawn as flowcharts before coding in Python.
A Python program is a sequence of statements where indentation, not braces, defines blocks, and the hash symbol starts a comment. Programs run interactively in the interpreter or as saved .py scripts.
Syntax is the grammatical rules of the language while semantics is the meaning of a well-formed statement. Python emphasises readable syntax, which lowers the barrier for beginners.
This unit introduced problem-solving strategies, the structure of a Python program, the difference between syntax and semantics, and executing simple programs.