We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93a00c2 commit 4c220eaCopy full SHA for 4c220ea
basics/lists-and-tuples.md
@@ -141,18 +141,18 @@ We'll talk more about loops [in the next chapter](loops.md).
141
>>>
142
```
143
144
-Another useful things about list is **comprehension**.
145
-**Comprehension** is a way to construct a list in single line. It makes our code more clean, shorter and easier to read.
+Another useful thing about lists is **list comprehension**.
+It's a handy way to construct a list in single line. It often makes code cleaner, shorter and easier to read.
146
147
```python
148
>>> numbers = [1,2,3,4,5]
149
->>> numbers_squared = [number ** 2 for number in numbers]
+>>> numbers_squared = [number ** 2 for number in numbers]
150
>>> numbers_squared
151
[1, 4, 9, 16, 25]
152
153
154
155
-without comprehension:
+Without a list comprehension, doing the same thing looks like this:
156
157
158
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments