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