Level 1 : What will this output?


lst = [10, 20, [30, 40], 50]
x = lst[2][1]
lst[2][0] = 99
print(lst, x)

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