Home > Mobile >  Python matrices without numpy
Python matrices without numpy

Time:02-11

I'm trying to learn how to operate on python matrices but it's difficult since online I'm finding nothing but numpy library and it is forbidden to use it on exams, so, do you have any suggestions on where to find a book, a pdf or a site where I can learn more without using numpy??

CodePudding user response:

If I couldn't use numpy I would use bidimensional lists for matrices.

Example:

a = [[1, 2, 3], [4, 5, 6]]

A list that contains list elements that contains numbers.

Numpy is more efficient and if you don't have experience with programming languages like c or c some operations could be difficult to implement.

There are a lot of websites to learn with lists, this is a beginner one with clearly and runnable code: https://snakify.org/en/lessons/two_dimensional_lists_arrays/

  • Related