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