Without syntax highlighting, "book.author for book in books if book.page_count > 1000" requires a lot more effort to parse because white space like newlines is not being used to separate things out.
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.