Exercises with solutions on OOP - object oriented programming in Python

Exercise 41. Rectangle class: ||  Solution Write a Rectangle class in Python language, allowing you to build a rectangle with length and width attributes. Create a Perimeter() method to calculate the perimeter of the rectangle and a Area() method to calculate the area of ​​the rectangle. Create a method display() that display the length, width,…

The Python NumPy Library

 1.  About numpy  1.1 What is numpy ? Numpy is an open source library associated with the Python language, created specially for scientific computing, notably matrix computing, while providing multiple functions allowing the direct creation and manipulation of matrices, vectors, etc... via data. Official documentation: https://numpy.org/doc/ 1.2 How to install numpy ? Installing the numpy…

Python Matplotlib module

1. About matplotlib module The matplotlib module is a large and very complete module. Here we are going to look at some examples of use such as for example the plotting of graphical representations of functions or statistical series. More information on official documentation can be found here. 2. Importing the matplotlib & pyplot module. …