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