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