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