Level 1 : What is below code output?


x = [1, 2, 3] 
x.append([4, 5])

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