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