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