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


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

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