Level 1 : Which of the following Python statements will result in the output: 6?


A = [[1, 2, 3],
     [4, 5, 6],
     [7, 8, 9]]

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