Brief Summary of Python

Python is an interpreted language. In Python, a new line terminates a statement; a continuation character \ can be used to continue a statement on a second line.

Python is sensitive not only to new lines, but also to how many spaces a line is indented. A block of code has all the lines indented the same number of spaces, and that is the only way that a block is indicated. It is illegal to change the indentation within a block of code, unless you are beginning a new inner block, such as the body of an if statement. There is no defined amount of spaces that the inner block must be indented, as long as it is at least one more than the outer block. A block of code ends when the indent level reverts to the level of an outer ...

Get Find the Bug A Book of Incorrect Programs now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.