Level 9 : What does this print?


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

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