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


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

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