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