Level 9 : What does this print?


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

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