changing-array-to-list

This commit is contained in:
vignesh
2018-04-14 08:35:58 +05:30
parent d3c9524379
commit 841385b5ed
9 changed files with 45 additions and 45 deletions

View File

@ -5,8 +5,8 @@ Removes falsey values from a list.
Use `filter()` to filter out falsey values (False, None, 0, and "").
```python
def compact(arr):
return list(filter(bool, arr))
def compact(lst):
return list(filter(bool, lst))
```
``` python