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