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