Level 10 : What is the output of the following code?


t = (1, 2, 3)
print(t[1:3])

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