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