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