Definitions


Programs are organized into lines called statements. Every program has at least one body, which is the main global body.
Programs can also have additional bodies, though, through indentation.
The statements inside of a function are indented, meaning they have four spaces in front of them.
These spaces are not just to help make the program more readable, they have a strict influence on the syntactic correctness of the program.
Improper number of spaces, or blocks being indented in the wrong places, is a common source of syntax errors.
Eventually, we will learn different ways that bodies can be used, but for now they are almost one-to-one with scopes.


def function_name(param1: type, param2: type) -> type: 
    body





© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited TopNext