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