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