Level 5 : What will this print?


x = [1, 2, 3]
y = x
del x
print(y)

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