Level 1 : Output of this code?


lst = [1, 2, 3]
lst.insert(-1, 99)
print(lst)

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