Level 1 : What will the output of the following code be?


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

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