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 | 1736+ Python FAQs | Share
mathematical-function | implementation | string-concatenation | tuple | methods | array | operator-or | assignment-operator | python | swapping | mathematics | list-join | indexing | oops | numpy | control-flow | center | benefit | gil | range | error-handling | data-type | mapping-function | destructor | math-copysign | version-check | complex | def | with-statement | input-function | counter-function | encapsulation | identity-operator | datatype | fabs-function | choice | class-and-inheritance | while-else-loop | pickling-&-unpickling | list-mutation | objects | set | classes | magic-method | loop | conditional-statement | __future__ | operand | matplotlib | matrix | generators-in-python | lists | function-argument | zip-function | application | statement | deep-copy | print-statement | built-in-function | design-principle | package-management | for | formal-and-actual-parameter | feature | condition | string-manipulation | slice | precedence | control-statement | sys-module | dictionary | join | touples | list-method | memory | context-manager | control-flow | syntax-error | functional-programming | namespace | update | variable | function | global-variable | arithmetic-operation | interpreter | async | operator | file_handling | python_version | default-mutable-argument | recursion | while-and-for-loop | logical-operation | dicts | postfix | immutable-data-type | identifier | library | recurssion | import-method | method | sorted | list-comprehension | datetime | conversion | overflow | data-type | complex-number | collection | turtle | precedence-and-associativity | typeerror | data-structure | lambdas | data-structures | return-statement | string-method | python-module | basic | encoding | function-and-scope | file | list-vs-tuple | int | math | string-slicing | yield | keyword | class-and-instance-variable | conditional-statement | asyncio-module | compute | bitwise | binary-operation | map-function | id-function | multiple-inheritance | identity-operator | multithreading | logical-operator | virtual-environment | assert | oop | mutable | file-handling | data-structure | global-keyword | inheritance | while-loop | multiprocessing | escape-operator | operations | generators | raise | generator | slicing | expand-tab | pseudocode | comment | frozenset | python-history | append | decimal | file-handling | collections | counter | match | odd-number | python-django | exception-handling | list-indexing | sorting | max-min | boolean | command-line-parsing | else-statement | functions | format | matrix-list-comprehension | integer | static-method | global | loop-control | error | filter-function | init | random | list-slicing | debugging | lambda | round | min-function | bitwise-operator | regex | memory-management | exception-handling | tuple-unpacking | string-formatting | scientific-notation | docstring | filter | pep | access-modifier | call | string-iteration | copy | string | numeric | rollback | version | class | thread | list-operation | type-conversion | round-function | bitwise-operator | dictionaries | lambda-function | heap-memory | floating-point-precision | string-slicing | list-comprehension | type_conversion | class-and-object | comprehension | iterator | higher-order-function | virtual-environment | constructor | input-function | pandas | set-operation | input | logical-operator | zip | enumerate() | decorator | sum-function | print | shallow-copy | staticmethod | boolean-and-non-boolean | inherit | comparison | exponentiation | syntax-error | list | type-conversion | syntaxerror | installation | operators | mysql | loops | data_structure | name-mangling | sum() | arithmetic-expression | factorial-function | indentation | operator-and | python-repl | built-in-function | operator-overloading | zfill-function | attribute | parameter | software-design | polymorphism | goto-function | namedtuple | __init_subclass__ | descriptors | split | exception | object-attribute | global-variable | built-in | asyncio | module | immutability | stack | string-method | string-formatting | head-and-tail | iterable | invalid-list | random-function | nested-loop | binary | syntax | __all__-attribute | regular-expression | threading | expression | sys | min-max-function ...