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