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