Block

« Back to Glossary Index

What we call a chunk of code where the first line ends with a colon : and one or more lines underneath it are indented an extra level to the right. See also: indentation

if some_condition:
    # The code in here is part of the block on line 1
    pass
# This code is no longer part of the block on line 1
« Back to Glossary Index