Self-paced

Explore our extensive collection of courses designed to help you master various subjects and skills. Whether you're a beginner or an advanced learner, there's something here for everyone.

Bootcamp

Learn live

Join us for our free workshops, webinars, and other events to learn more about our programs and get started on your journey to becoming a developer.

Upcoming live events

Learning library

For all the self-taught geeks out there, here is our content library with most of the learning materials we have produced throughout the years.

It makes sense to start learning by reading and watching videos about fundamentals and how things work.

Search from all Lessons


Start interactive tutorial

← Back to Exercises

Linear Algebra in Python and NumPy

Exercises and examples for linear algebra using Python and NumPy, covering topics such as vectors, matrices, and linear transformations.

Work on real-life coding environments with LearnPack.

Get instant help with our AI mentor: Rigobot.

No installation, you go directly to programming

Difficulty

  • beginner

Average duration

5 hrs

Difficulty

  • beginner

Average duration

5 hrs

Sign up and get access to this free interactive tutorial

We will use it to give you access to your account.
Already have an account? Login here.

By signing up, you agree to the Terms and conditions and Privacy policy.

Difficulty

  • beginner

Average duration

5 hrs

Difficulty

  • beginner

Average duration

5 hrs

Difficulty

  • beginner

Average duration

5 hrs

Difficulty

  • beginner

Average duration

5 hrs

In this tutorial, you will learn to manipulate vectors and matrices in Python using both nested lists and NumPy arrays. We will explore from basic operations to more advanced ones. To ensure you understand both ways of working with data in Python, we will divide the project into two parts:

  • Pure Python: We will use nested lists to represent and operate with vectors and matrices.
  • NumPy: You will learn to work with arrays, which facilitates many operations and optimizes performance.

By the end of this tutorial, you will be able to perform calculations with vectors and matrices in Python efficiently and understand when it is better to use each approach.

How are the exercises organized?

Each exercise is a small Python application that contains the following files:

  1. app.py: Represents the Python entry file that will be executed by the computer.
  2. README.md: Contains the exercise instructions.
  3. test.py: Contains the test script for the exercise (you do not need to open this file).

Note: These exercises have automatic grading. The tests are very rigid and strict; my recommendation is not to pay too much attention to the tests and use them only as a suggestion, or you might get frustrated.

Contributors

This project follows the all-contributors specification. All contributions are welcome!

This and many other exercises are built by students as part of the 4Geeks Academy Coding Bootcamp by Alejandro Sánchez and many other contributors. Find out more about our Full Stack Developer Course, and Data Science Bootcamp.

Sign up and get access to this free interactive tutorial

We will use it to give you access to your account.
Already have an account? Login here.

By signing up, you agree to the Terms and conditions and Privacy policy.

Difficulty

  • beginner

Average duration

5 hrs

Difficulty

  • beginner

Average duration

5 hrs