Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Coding in Python's Numpy library

I tried a numpy code in vscode and it shows no output. i checked my code twice but still can’t fina a proble. The same code is running in python’s own IDE. could someone pls tell what’s wrong?
the code is as follows

import numpy as n 

print(n.__version__)

x=n.array([1,5,2,9,7])

print(x)

print(type(x))

enter image description here

I tried this code and got no output.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

The code functions correctly; the issue you’re experiencing may be due to not saving your files. I executed the same code in online compilers, and it ran successfully.

Online Compiler Output.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading