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

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