June 2000
Intermediate to advanced
556 pages
8h 45m
English
Python's WYSIWYG code layout philosophy is at the core of how Python programs are constructed. Control structures such as code repetition and code selection use indentation to express the grouping of code statements.
In this section, we talk a little about the philosophy behind this WYSIWYG approach and then look at the most important control structures provided by Python.
Here is a simple algorithm in the C programming language that uses braces to control statement grouping. Languages such as C++, Perl, and Java™ also take this general approach to statement grouping.
CD-ROM reference=5001.txt while (alive) { if (hungry) { eat(); if (thirsty) { drink(); } } else { WriteSoftware(); ...Read now
Unlock full access