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

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