Level 1 : What is the output for the following logic?


list = ["python", "program"]
for i in list:
    i.upper()
print(list)

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