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