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