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