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.
![Bank_Accounts_Framework](https://private-user-images.githubusercontent.com/113218619/266813636-a69675cc-3993-4ddb-b642-33a246e2d3fd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE3OTg1MzIsIm5iZiI6MTcyMTc5ODIzMiwicGF0aCI6Ii8xMTMyMTg2MTkvMjY2ODEzNjM2LWE2OTY3NWNjLTM5OTMtNGRkYi1iNjQyLTMzYTI0NmUyZDNmZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzI0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyNFQwNTE3MTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04ZDViYTliMjI1MmQyOTFjYzhlMWQxNWFhMWU2ZDE2YWViZmIxMzAwMGQ1NGVmMTdlYTQ5NDBmNTBkMDhlMjA1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.wKvfTaH7FKSZFc-GWFVEH4ycVMxrHPzxSpeFfF9m0G8)
-
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
![Screenshot 2023-09-27 at 02 28 33](https://private-user-images.githubusercontent.com/113218619/270873669-f4d27423-fa44-4d23-855d-c8dde2cab9d4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE3OTg1MzIsIm5iZiI6MTcyMTc5ODIzMiwicGF0aCI6Ii8xMTMyMTg2MTkvMjcwODczNjY5LWY0ZDI3NDIzLWZhNDQtNGQyMy04NTVkLWM4ZGRlMmNhYjlkNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzI0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyNFQwNTE3MTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05N2ZhZGIzZTY1MTBkMWM2NGNlNWQzZmY5YzQ5YWNhOTY3OGE5YmMwZDc0NzhjNDlkNDZiZGFmYjRkN2ExZDYzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.82_9pxXM9MwyEX9dhxZtbpp7Pzk6nNGId7ErYgzuueA)
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.
![Screenshot 2023-09-27 at 02 31 23](https://private-user-images.githubusercontent.com/113218619/270878559-5f2854d3-0ad8-45be-bf13-390f62124096.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE3OTg1MzIsIm5iZiI6MTcyMTc5ODIzMiwicGF0aCI6Ii8xMTMyMTg2MTkvMjcwODc4NTU5LTVmMjg1NGQzLTBhZDgtNDViZS1iZjEzLTM5MGY2MjEyNDA5Ni5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzI0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyNFQwNTE3MTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03OTIyZjFkNGQyNWYyNWJkMTg1YzVkYmRiZDdkOTA0OWJjZDc2MDYwYTQ4MmQzOGI5NmM5MjRhMTJiZTEzZjkxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.-S7WkTYqL4RRlTvpOf1spaS4KFlzbOjoCr6sQkd4Y3o)
-
1_float_ examples of numbers represented in floating point in Python.txt
-
1c_string_Concatenation_Formatting_{Evaluated Expression}.txt