Level 1 : What will be the output of the following Python code?


print([i.lower() for i in "HELLO"])

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