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