mirror of
https://github.com/Asabeneh/30-Days-Of-Python.git
synced 2026-06-03 21:02:42 +08:00
Merge pull request #479 from Abdoallah-Badr/patch-2
Update 13_list_comprehension.md
This commit is contained in:
commit
ad7fa1304f
@ -34,7 +34,7 @@ List comprehension in Python is a compact way of creating a list from a sequence
|
||||
|
||||
```py
|
||||
# syntax
|
||||
[i for i in iterable if expression]
|
||||
[expression for i in iterable if condition]
|
||||
```
|
||||
|
||||
**Example:1**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user