This repository contains Python code for performing linear algebra operations and matrix manipulations. The tasks include creating a class for products, implementing matrix multiplication, finding determinants, solving linear systems, and more.
The script sales_calculator.py
inside Task1 folder contains a Python program that calculates the total sales and average sales for a given week's sales amounts.
The script product_operations.py
inside Task2 folder defines a Product
class with attributes like name, price, and quantity. Additionally, it includes functions to calculate the total cost of a given basket of products and apply a discount.
The task involves defining a class named Product
with attributes such as name, price, and quantity. An instance of the class is created to showcase its usage.
The script data_handling.py
inside Task5 folder includes functions for performing linear algebra operations, such as matrix multiplication, finding determinants, and solving linear systems.
Feel free to explore each task's script for more details and examples.
Ensure you have Python installed, then run each script individually using a Python interpreter.
python sales_calculator.py
python product_operations.py
python Product.py
python linear_algebra.py
No external dependencies are required. The scripts use standard Python libraries.