forked from scipy-lectures/scientific-python-lectures
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
basic_types.rst: Clearer list comprehensions
This changes the list comprehension example to use color names instead of plain integers to remove ambiguity for beginners. The current example is confusing because the list members are actually shifted list indices. This is also an attempt to fix scipy-lectures#32
- Loading branch information
1 parent
ee51400
commit bdc0dbc
Showing
1 changed file
with
20 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters