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


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

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