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


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

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