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