Level 10 : What will be the output of the following Python code?


A = [[1, 2, 3],
     [4, 5, 6],
     [7, 8, 9]]
B = [[3, 3, 3],
     [4, 4, 4],
     [5, 5, 5]]
zip(A, B)

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