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


x = 'abcd'
for i in x:
    print(i.upper())

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