Level 7 : What is the result of the following code?


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

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