Level 1 : Guess the output of the following Python code.


t=(1,2,4,3)
t[1:-1]

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