Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/the-basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -566,8 +566,8 @@ To select pages, do the following:

.. code-block:: python

p_even = [p in range(doc.page_count) if p % 2 == 0]
p_odd = [p in range(doc.page_count) if p % 2 == 1]
p_even = [p for p in range(doc.page_count) if p % 2 == 0]
p_odd = [p for p in range(doc.page_count) if p % 2 == 1]

This snippet creates the respective sub documents which can then be used to print the document:

Expand Down
Loading