Level 1 : Output of this code?


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

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