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