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