Level 1 : What will be the output of the following Python code?


l=[[1, 2, 3], [4, 5, 6]]
for i in range(len(l)):
	for j in range(len(l[i])):
		l[i][j]+=10
l

Author: KaivalyaG | Tags: matrix | 1736+ Python FAQs | Share
data_structure | file-handling | init | immutable-data-type | string-iteration | regular-expression | math | global | lambdas | split | immutability | return-statement | operator-and | syntax | goto-function | descriptors | stack | input-function | global-variable | pep | int | set | comment | iterable | bitwise-operator | copy | memory | nested-loop | type-conversion | built-in-function | data-structure | loop | print | random-function | matrix | numeric | slice | logical-operation | magic-method | mathematical-function | __init_subclass__ | append | input-function | multiprocessing | sys | function-and-scope | class | loop-control | debugging | deep-copy | function | max-min | file-handling | while-loop | python-history | assert | collections | design-principle | pandas | while-and-for-loop | integer | map-function | while-else-loop | attribute | default-mutable-argument | string-method | sum() | access-modifier | inherit | comparison | assignment-operator | fabs-function | type_conversion | data-structure | factorial-function | indexing | frozenset | basic | math-copysign | python_version | overflow | scientific-notation | feature | objects | loops | sorted | constructor | decorator | staticmethod | round | python-module | list-mutation | slicing | list-join | invalid-list | mysql | boolean-and-non-boolean | asyncio | inheritance | zip-function | classes | precedence-and-associativity | dictionaries | update | object-attribute | string-slicing | destructor | escape-operator | list | encoding | boolean | bitwise | postfix | tuple-unpacking | logical-operator | expression | version-check | built-in | installation | rollback | python-repl | application | set-operation | software-design | lists | with-statement | matrix-list-comprehension | namespace | functions | compute | name-mangling | matplotlib | operators | filter | formal-and-actual-parameter | multithreading | built-in-function | gil | list-method | collection | head-and-tail | command-line-parsing | join | functional-programming | decimal | call | numpy | regex | raise | sum-function | class-and-object | min-function | methods | list-indexing | counter | sorting | keyword | generators-in-python | mathematics | expand-tab | dictionary | interpreter | dicts | else-statement | string-formatting | shallow-copy | enumerate() | identity-operator | error-handling | async | benefit | control-flow | mapping-function | swapping | lambda | precedence | string | parameter | comprehension | iterator | python | global-keyword | implementation | string-manipulation | string-slicing | virtual-environment | control-statement | data-structures | min-max-function | odd-number | input | binary-operation | data-type | namedtuple | arithmetic-operation | string-concatenation | asyncio-module | recurssion | zip | logical-operator | condition | global-variable | filter-function | string-formatting | operator | sys-module | turtle | __all__-attribute | syntax-error | operand | type-conversion | datatype | typeerror | encapsulation | data-type | multiple-inheritance | match | statement | print-statement | pseudocode | memory-management | recursion | error | pickling-&-unpickling | complex-number | package-management | python-django | context-manager | class-and-inheritance | polymorphism | generators | exception-handling | method | exponentiation | __future__ | list-comprehension | id-function | operator-overloading | round-function | file_handling | counter-function | indentation | virtual-environment | identifier | file | control-flow | heap-memory | list-operation | touples | thread | higher-order-function | binary | syntaxerror | function-argument | version | range | lambda-function | conditional-statement | operator-or | mutable | identity-operator | datetime | oops | library | choice | bitwise-operator | complex | list-comprehension | array | floating-point-precision | format | exception-handling | arithmetic-expression | yield | for | def | import-method | oop | class-and-instance-variable | exception | module | center | tuple | list-slicing | threading | syntax-error | generator | variable | conversion | conditional-statement | operations | static-method | string-method | zfill-function | docstring | list-vs-tuple | random ...