Skip to content

Instantly share code, notes, and snippets.

@Ventsislav-Yordanov
Last active January 29, 2018 05:38
Show Gist options
  • Save Ventsislav-Yordanov/988a6a941e31326dedc94974d6dfbdb7 to your computer and use it in GitHub Desktop.
Save Ventsislav-Yordanov/988a6a941e31326dedc94974d6dfbdb7 to your computer and use it in GitHub Desktop.
from numpy import array
numbers = array([3, 4, 20, 15, 7, 19, 0]) # works fine
numbers = numpy.array([3, 4, 20, 15, 7, 19, 0]) # NameError: name 'numpy' is not defined
type(numbers) # numpy.ndarray
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment