Level 1 : What will be the output of the following Python function


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

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