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