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