Level 1 : What will the output of the following code be?


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

Author: SandhyaR | Tags: tuple | 1736+ Python FAQs | Share
immutability | destructor | list-comprehension | compute | installation | syntax-error | memory | else-statement | raise | iterable | counter-function | exception | python-repl | stack | precedence-and-associativity | init | encoding | loops | type-conversion | escape-operator | error | copy | control-flow | type_conversion | math-copysign | generators-in-python | file-handling | operator-and | syntax-error | goto-function | pickling-&-unpickling | name-mangling | static-method | set-operation | identifier | docstring | classes | module | print | pandas | data-structure | input-function | max-min | loop-control | mathematical-function | comprehension | lists | random-function | higher-order-function | staticmethod | identity-operator | string-concatenation | context-manager | function | list-indexing | lambda-function | software-design | zip | slice | operand | dictionary | list-slicing | functions | data-type | version | operator-or | matrix | string-iteration | assert | set | global-variable | exponentiation | parameter | syntaxerror | design-principle | choice | package-management | round-function | format | namedtuple | python | dictionaries | polymorphism | lambdas | heap-memory | data-structure | python_version | version-check | assignment-operator | sum() | encapsulation | center | random | library | while-else-loop | string-slicing | loop | inheritance | methods | nested-loop | __init_subclass__ | application | scientific-notation | conditional-statement | __future__ | object-attribute | virtual-environment | python-django | default-mutable-argument | bitwise | built-in-function | string-method | tuple-unpacking | descriptors | class-and-inheritance | generators | factorial-function | match | data_structure | print-statement | while-and-for-loop | command-line-parsing | multiple-inheritance | operator-overloading | gil | list-comprehension | global | logical-operator | floating-point-precision | logical-operator | min-function | decimal | file_handling | postfix | conditional-statement | array | input | comparison | feature | list-vs-tuple | list-method | recurssion | recursion | list | pseudocode | functional-programming | precedence | threading | attribute | formal-and-actual-parameter | touples | memory-management | control-flow | head-and-tail | zfill-function | regex | fabs-function | append | magic-method | call | class-and-instance-variable | string-formatting | arithmetic-operation | min-max-function | math | global-variable | condition | string-slicing | yield | file | mapping-function | operations | filter-function | sum-function | binary | split | namespace | asyncio | mathematics | zip-function | collection | virtual-environment | overflow | dicts | method | sys-module | rollback | data-structures | return-statement | built-in-function | function-argument | update | data-type | swapping | binary-operation | string-formatting | tuple | int | string-method | oop | integer | id-function | asyncio-module | operators | numeric | async | built-in | mysql | invalid-list | turtle | join | bitwise-operator | generator | global-keyword | datetime | deep-copy | list-operation | complex | debugging | with-statement | control-statement | odd-number | python-history | objects | sys | multithreading | slicing | comment | filter | type-conversion | import-method | arithmetic-expression | syntax | bitwise-operator | inherit | implementation | matrix-list-comprehension | indexing | while-loop | decorator | string-manipulation | expression | lambda | keyword | round | indentation | input-function | exception-handling | constructor | pep | map-function | variable | boolean-and-non-boolean | logical-operation | regular-expression | benefit | basic | multiprocessing | list-mutation | shallow-copy | iterator | string | interpreter | oops | identity-operator | immutable-data-type | counter | sorting | thread | access-modifier | __all__-attribute | datatype | collections | complex-number | enumerate() | class | conversion | matplotlib | range | boolean | function-and-scope | error-handling | sorted | python-module | exception-handling | expand-tab | operator | for | statement | typeerror | file-handling | numpy | class-and-object | def | frozenset | list-join | mutable ...