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