Level 10 : What is the output?


x = [1, 2, 3]
y = x
x = x + [4, 5]
print(y)

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