by davidw · 1y ago · 0 comments
authors_of_long_books: set[Author] = {
book.author
for book in books
if book.page_count > 1000
}Syntax highlighting in print is more limited because of technological and economic constraints, which might leave just bold, italics and underlines on the table, while dropping color. On screens and especially in our editors where we see the most code, a lack of color is often a self-imposed limitation.
They're just a tad more verbose in Python than mathematics because it uses words like 'for' and 'in' instead of symbols.