There is no compulsory that we have to import NUMPY as NP in order to use arrays in Python. You can use any name to import the NUMPY package in Python. Below I attached the example that I have done on My computer. Here, I have imported NUMPY as NUM. You can use any name that you like to import NUMPY library. But that name you have to continue for further operations.
![]() |
| NumPy Example |

No comments:
Post a Comment