A Python program that performs basic and advanced matrix operations using lists and loops.
It supports addition, subtraction, multiplication, division (via inverse), and determinant/inverse calculation for 3×3 matrices.
- Input matrices interactively
- Matrix addition, subtraction, multiplication
- Matrix division (A × B⁻¹)
- Determinant, cofactor, transpose, and inverse (3×3 only)
Run the script:
python matrix_operations.py
You will be prompted to enter elements for two 3×3 matrices (A and B).
Then choose an operation:
1. Addition (A + B)
2. Subtraction (A - B)
3. Multiplication (A * B)
4. Division (A * B^-1)
Output will come according to ur input.