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