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