|
|
|
|
|
by mason_jake
2412 days ago
|
|
Python dev for 5 years: personally I like `[1 for _ in range(10)]` and `[1] * 10`. The `for _ in` syntax denotes the variable is basically a throwaway, whereas the `for n in` construct is a bit confusing - almost like we're supposed to be doing something with the `n` in the comprehension. |
|