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


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

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