Level 9 : What does this print?


lst = [1, 2, 3]
lst += lst[::-1]
print(lst)

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