Operators: Symbols used to perform operations (e.g., +, -, *, /). Conditional statements: Execute pieces of code based on certain conditions (e.g., if, else). Loops: Execute pieces of code multiple times (e.g., for, while). Functions/Procedures: Reusable code blocks. Arrays/Lists: Data structures used to store sets of items. Objects: Instances of a class in object-oriented programming. Classes: Templates for creating objects. Paradigms: Programming models or styles (e.g., imperative, object-oriented, functional). Inheritance: Ability of a class to inherit properties and methods from another class. Scope: Access level of a variable or function (e.g., global, local). Exceptions: Handling errors or unexpected behavior. Libraries/API: Collections of predefined functions and classes. Input/Output: Methods for receiving input data and displaying output data. (Receive a text file and be able to manipulate it, display a message to the user etc...)
Important basic information
- Python is very useful for task automation (for Blender for example)
- Python is an interpreted language (https://www.devlab101.com/docs/BaseProg/CompilationVsInterpretation)
- Paradigms:
- imperative: focus on the sequences of instructions executed.
- object-oriented: focus on objects and classes.
- functional: focus on pure functions + avoid mutable states
Variables and data types
name = "ATC"
count = 42
float_number = 10.5
is_premium_ = True
collection_list = [1, 2, 3]
levels_tuple = (1, 2, 3)
roman_number_dictonnary = {"I": 1, "V": 5, "X": 10, "L": 50, "C": 100, "D": 500, "M": 1000}
email_set= {"neo@gmail.com", "42@gmail.com", "michel@gmail.com"}