Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
create a matrix 3 * 3 with value ranging from 0 to 8
Home
NumPy
create a matrix 3 * 3 with value ranging from 0 to 8
+1
vote
asked
Jul 8, 2021
in
NumPy
by
rajeshsharma
create a matrix 3 * 3 with value ranging from 0 to 8
numpy-matrix
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jul 8, 2021
by
rajeshsharma
arr = np.arange(0,9).reshape(3,3)
print(arr)
...