diff --git a/README.md b/README.md index 0d7960f..b4e7a39 100644 --- a/README.md +++ b/README.md @@ -324,6 +324,11 @@ any(el[1] for el in ) if else ``` +```python +>>> [a if a else 2 for a in [0,1,0,3]] +[2, 1, 2, 3] +``` + Closure ------- ```python