Level 9 : Which of the following can be used to remove empty strings in a list?

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