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


list = ["balaji", "lakshmi"]
for i in list:
        list.append(i.upper())
print(list)

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