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