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


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

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