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