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

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