Level 9 : What is the output of the below code?


import numpy as np
ar_1= np.array([3,5,7])
ar_2 = np.array([3,8,2])
arr = np.concatenate((ar_1, ar_2))
print(arr)

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