Level 1 : Output of this code?


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

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