Level 6 : Output of this code?


lst = [2, 3, 4]
print(lst.pop(0), lst.pop(-1))

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