2 Program Structures
In this chapter, you’ll get to know the linear program structure as well as the branching and repetition structures of the imperative programming style of Python. Examples of object-oriented and functional programming describe further ways to program using Python.
A program consists of a sequence of statements. A statement is a command that tells the interpreter (in this case, the Python interpreter) what actions the CPU is supposed to perform: for example, accept input, process the input, or output the processing results to the screen. These actions, which always run in the same way, are referred to as the input-process-output (IPO) model in computer science terminology.
Problems that are to be solved with a computer can ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access