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