List comprehensions are a unique way to create lists in Python. A list comprehension consists of brackets containing an expression followed by a for clause, then zero or more for or if clauses. - s ...
# The comprehension is shorter and is considered more "Pythonic" (idiomatic). # Basic: no condition, just transform each item # "For each x in range(1,11), put x**2 ...