Level 9 : What will be the output of the following Python code snippet?


for i in 'abcd'[::-1]:
    print (i)

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