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


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

Author: IndraD | Tags: slicing | 1736+ Python FAQs | Share
polymorphism | identifier | init | default-mutable-argument | operations | data-structure | inheritance | built-in-function | lambda | installation | update | global-variable | list-method | immutability | namedtuple | python-repl | binary | constructor | mathematics | list-comprehension | functions | oops | bitwise-operator | built-in | boolean-and-non-boolean | loop-control | control-statement | escape-operator | lambdas | generators-in-python | function-and-scope | operator-and | formal-and-actual-parameter | exception-handling | counter-function | file | encoding | list-operation | binary-operation | python-django | gil | mathematical-function | global-keyword | iterator | keyword | list | with-statement | library | conversion | deep-copy | choice | operator-or | threading | operator | zfill-function | virtual-environment | factorial-function | sum() | slice | boolean | matrix | regex | matrix-list-comprehension | datatype | asyncio | logical-operator | namespace | data-type | mysql | string | call | slicing | function-argument | type-conversion | attribute | magic-method | invalid-list | fabs-function | syntaxerror | lambda-function | string-method | operator-overloading | input-function | set | module | comparison | math | static-method | feature | set-operation | error-handling | control-flow | import-method | int | arithmetic-operation | matplotlib | tuple | turtle | staticmethod | goto-function | comprehension | variable | string-method | statement | list-join | python_version | head-and-tail | class-and-object | pep | list-comprehension | assignment-operator | string-formatting | match | compute | lists | regular-expression | decorator | memory-management | python-history | error | math-copysign | expand-tab | raise | center | data-structure | append | descriptors | input | return-statement | bitwise | complex-number | floating-point-precision | dictionaries | multiple-inheritance | global-variable | string-slicing | parameter | iterable | type-conversion | data_structure | while-loop | nested-loop | touples | recurssion | sorted | exception | indexing | __init_subclass__ | mapping-function | method | virtual-environment | file_handling | input-function | def | logical-operation | version-check | generator | assert | while-else-loop | map-function | data-type | round | dictionary | type_conversion | shallow-copy | identity-operator | collection | condition | function | string-slicing | comment | stack | postfix | python-module | tuple-unpacking | decimal | list-mutation | classes | application | mutable | format | control-flow | indentation | list-slicing | __all__-attribute | string-iteration | collections | name-mangling | operators | arithmetic-expression | multithreading | print-statement | dicts | class-and-inheritance | destructor | loop | syntax-error | filter | interpreter | syntax | higher-order-function | sys-module | zip-function | basic | loops | join | numpy | split | object-attribute | logical-operator | context-manager | min-max-function | enumerate() | counter | rollback | thread | memory | list-vs-tuple | heap-memory | random-function | precedence | exception-handling | max-min | conditional-statement | datetime | immutable-data-type | file-handling | min-function | file-handling | expression | sorting | yield | range | print | filter-function | list-indexing | pandas | string-manipulation | recursion | sum-function | else-statement | odd-number | data-structures | __future__ | pickling-&-unpickling | bitwise-operator | command-line-parsing | zip | random | benefit | round-function | encapsulation | multiprocessing | string-concatenation | oop | syntax-error | generators | conditional-statement | package-management | pseudocode | identity-operator | string-formatting | inherit | design-principle | overflow | array | operand | class | software-design | precedence-and-associativity | copy | complex | integer | typeerror | while-and-for-loop | python | access-modifier | async | frozenset | global | implementation | swapping | for | class-and-instance-variable | docstring | numeric | methods | exponentiation | sys | scientific-notation | objects | id-function | version | built-in-function | functional-programming | asyncio-module | debugging ...