Level 10 : What is the output of the following code?


text = "Hello World"[::-1]
print(text)

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