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


word = "Python"
print(word[::-1])

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