in PYTHON ( I am using pycharm )
I am trying to write a program that will ultimately take a matrix given by the user. This matrix will then be defined by a variable and called upon. And this is where I'm having trouble. When you run the program, I want it to prompt the user for a matrix, where the program will only accept a matrix styled as a list of list of numbers. so when you click run, you see something like:
what is your matrix?
and then the user will have to type in a matrix like:
[[1, 2, 3], [4, 5, 6], [7, 8, 9]]
and then that matrix can be set to equal a variable called mat, so
mat = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
and that way I can call mat later in my program.
Now pycharm will not let me use numpy. I get the error
No module named 'numpy'
whenever I try
import numpy as np