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