Level 10 : What is the output of the following code?


import numpy as np
array_ = np.array([1,2,3,4,5])
print(array_)

Author: anusha | Tags: numpy | 1859+ Python FAQs | Share
error | max-min | string-formatting | raise | namespace | odd-number | pass | random | key-value-pairs | memory-management | logical-operators | global-variable | map-function | logical-operation | gil | operator-or | basic | call | default-arguments | postfix | package-management | match | python-django | loop | exception | data-types | function-and-scope | operand | magic-method | boolean | matplotlib | lambda-function | nested-loop | operator-overloading | pseudocode | loop-control-statements | default-mutable-argument | boolean-masking | overriding-methods | logical-operator | oop | filter | thread-safe-data-structures-(queue.queue) | syntax-error | sys-module | string-formatting | string-slicing | python-repl | using-os-and-pathlib-modules | string-iteration | reading-and-writing-large-files-efficiently | list-slicing | list-operation | software-design | error-handling | expression | import-method | reading:-read(),-readline(),-readlines() | mutable | list-mutation | using-map()-for-transformations | threading | tuple-unpacking | formatting-with-strftime | logical-operator | invalid-list | tuple | parameter | recursion | python_version | benefit | built-in-function | access-modifier | head-and-tail | version-check | python-operators | function-argument | destructor | working-with-binary-files-(rb,-wb) | conditional-statements | complex | int | zip-function | center | append | pandas | type-conversion | variable | generators | function | sys | rollback | immutable-data-type | global-keyword | shallow-copy | lambda-functions | choice | typeerror | string-concatenation | handling-missing-values-(fillna,-dropna) | tuples | multiple-except-blocks | return-statement | anchors-(^,-$) | string | creating-and-starting-threads | indentation | data-structure | asyncio-module | quantifiers-(*,-+,-?,-{}) | using-lists-as-stacks | numeric | boolean-and-non-boolean | mathematical-function | attribute | writing:-write(),-writelines() | thread-synchronization | class | implementation | syntax-error | identifier | global | operators | conversion | list-comprehension | print | python-syntax-and-structure | update | namedtuple | design-principle | set-operation | syntax | literal-characters-and-special-characters | python-history | bitwise | assert | input-function | file-handling | bitwise-operator | functional-programming | print-statement | split | list | statement | round-function | for | sum-function | while-loops | file_handling | raise-statement | min-function | dictionary-comprehensions | creating-custom-modules | membership-operators-(in,-not-in) | using-yield-in-functions | collection | higher-order-function | constructor | installation | class-and-object | complex-number | error-handling | indexing:-loc-vs-iloc | exponentiation | built-in-function | regular-expression | while-and-for-loop | precedence | introduction-to-multiprocessing | decorator | test-discovery | data_structure | multiple-inheritance | integers | recurssion | dictionary-methods | string-slicing | interpreter | yield | pickling--unpickling | staticmethod | comparison | operator | method | context-manager | slice | bitwise-operator | working-with-temporary-files-using-tempfile | single-inheritance | keyword | list-methods-and-slicing | collections | static-method | assignment-operator | library | multithreading | conditional-statement | floats | parsing-with-strptime | condition | counter-function | operations | operator-and | arbitrary-arguments-(*args,-**kwargs) | indexing | swapping | python-module | assignment-operators | binary-operation | fabs-function | type-conversion-and-casting | global-variable | docstring | string-method | opening-files-(open()) | else | classes | time-series-with-pandas | identity-operators-(is,-is-not) | joining-and-merging-dataframes | class-and-inheritance | reading-and-writing-files | virtual-environment | inherit | set | iterable | encoding | lambdas | enumerate() | managing-directories-with-os-and-shutil | loop-control | with-statement | unit-testing | init | list,-set,-and-dictionary-comprehensions | filtering-and-indexing | advanced-file-operations | why-use-multiprocessing-over-threading?-(gil) | list-comprehension | comment | difference-between-threads-and-processes | intering | introduction-to-threads | syntaxerror | immutability | round | filter-function | class-and-instance-variable | frozenset | array | arithmetic-operation | thread | introduction-to-python | aggregating-data-with-functools.reduce() | file-handling | slicing | data-type | generator | multiple-inheritance | command-line-parsing | matrix-list-comprehension | iterators | matrix | encapsulation | numpy | __init_subclass__ | goto-function | generators-in-python | integer | application | __future__ | list-method | debugging | id-function | dictionaries | regex | method-overloading | working-with-file-paths | scientific-notation | precedence-and-associativity | heap-memory | polymorphism | turtle | using-assertions-(assertequal,-assertraises) | asyncio | strings | deep-copy | class-decorators | module | sorting-and-ranking | mathematics | mapping-function | type-conversion | datatype | lists | factorial-function | working-with-dates-and-times | zfill-function | __all__-attribute | type_conversion | arithmetic-expression | built-in | regular-expressions | built-in-modules | counter | binary | async | object-attribute | file | math-copysign | comprehension | list-indexing | math | pep | input | functions | loops | decimal | directory-operations | touples | control-statement | data-structure | datetime.date,-datetime.time,-datetime.datetime | while-else-loop | using-join()-and-is_alive()-methods | list-comprehensions | sorted | using-the-threading-module | range | random-function | sorting | sum() | oops | while-loop | functional-programming | overflow | iterator | conditional-statement | exception-handling | string-manipulation | sets | name-mangling | using-else-and-finally | tuple-methods | methods | data-type-conversions | defining-functions | control-flow | format | descriptors | formal-and-actual-parameter | expand-tab | exception-handling | def | stack | version | feature | zip | escape-operator | data-type | virtual-environment | join | floating-point-precision | memory | copy | input-function | identity-operator | list-join | dataframe-and-series-objects | multiprocessing | inheritance | control-flow | walking-through-directories-using-os.walk() | dictionary | python | identity-operator | datetime | dicts | else-statement | compute | min-max-function | objects | lambda | data-structures | mysql | string-method | data-structures-in-python | booleans | string-methods | list-vs-tuple ...