Level 9 : What does this print?


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

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