Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 14e3c44

Browse files
benediktwernerrhettinger
authored andcommitted
Fix table formatting in itertools doc (GH-12228)
1 parent e680c3d commit 14e3c44

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

Doc/library/itertools.rst

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,17 @@ Iterator Arguments Resu
7070
:func:`permutations` p[, r] r-length tuples, all possible orderings, no repeated elements
7171
:func:`combinations` p, r r-length tuples, in sorted order, no repeated elements
7272
:func:`combinations_with_replacement` p, r r-length tuples, in sorted order, with repeated elements
73-
``product('ABCD', repeat=2)`` ``AA AB AC AD BA BB BC BD CA CB CC CD DA DB DC DD``
74-
``permutations('ABCD', 2)`` ``AB AC AD BA BC BD CA CB CD DA DB DC``
75-
``combinations('ABCD', 2)`` ``AB AC AD BC BD CD``
76-
``combinations_with_replacement('ABCD', 2)`` ``AA AB AC AD BB BC BD CC CD DD``
7773
============================================== ==================== =============================================================
7874

75+
============================================== =============================================================
76+
Examples Results
77+
============================================== =============================================================
78+
``product('ABCD', repeat=2)`` ``AA AB AC AD BA BB BC BD CA CB CC CD DA DB DC DD``
79+
``permutations('ABCD', 2)`` ``AB AC AD BA BC BD CA CB CD DA DB DC``
80+
``combinations('ABCD', 2)`` ``AB AC AD BC BD CD``
81+
``combinations_with_replacement('ABCD', 2)`` ``AA AB AC AD BB BC BD CC CD DD``
82+
============================================== =============================================================
83+
7984

8085
.. _itertools-functions:
8186

0 commit comments

Comments
 (0)