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


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

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