Welcome to the Object Oriented Programming repository for the Analysis and Systems Development Program at Impacta Technology University - São Paulo - Brazil! Here you'll find exercises, exams, notes, and environment setup instructions relevant to the curriculum covered in class. Feel free to explore, contribute, and learn together with your peers.
😎 Happy coding!
The code below provides a simple framework for managing different types of bank accounts, including savings and investment accounts, and allows for basic operations like deposits and withdrawals. The InvestmentAccount class extends the functionality of the base BankAccount class to handle specific investment-related actions.
-
Command to Install Flake8 in Your Development Environment
py -m pip install flake8 # Windows python3 -m pip install flake8 # Linux and MacOS
-
Command to Install pep8-naming in Your Development Environment
py -m pip install pep8-naming # Windows python3 -m pip install pep8-naming # Linux and MacOS
-
Set of Commands Adding Options to a JSON Configuration File
{ "python.linting.pylintEnabled": false, "python.linting.flake8Enabled": true, "editor.renderWhitespace": "boundary", }
These commands help you manage Python dependencies by creating a virtual environment, saving installed packages to a file, and then installing those packages when needed.
-
List installed Python packages and their versions:
pip freeze
-
Save the list of installed packages to a requirements.txt file:
pip freeze > requirements.txt
-
Deactivate the current virtual environment:
deactivate
-
Create a new virtual environment named .venv:
python3 -m venv .venv
-
Activate the newly created virtual environment:
source .venv/bin/activate
-
Install packages listed in the requirements.txt file:
pip install -r requirements.txt
This docstring provides an explanation of the property class and its constructor, including the optional arguments fget, fset, fdel, and doc, along with descriptions of what each argument does.
-
1_float_ examples of numbers represented in floating point in Python.txt
-
1c_string_Concatenation_Formatting_{Evaluated Expression}.txt