Level 1 : Output of this code?


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

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