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