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