From 56ff8020b32e4cbf194d54e3096f0c971243f6a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Fri, 23 Nov 2018 18:55:56 +0100 Subject: [PATCH] Itertools --- README.md | 9 --------- 1 file changed, 9 deletions(-) diff --git a/README.md b/README.md index 22603d0..0d3e921 100644 --- a/README.md +++ b/README.md @@ -752,26 +752,17 @@ from itertools import * ### Math -#### Combinations ```python >>> combinations('abc', 2) [('a', 'b'), ('a', 'c'), ('b', 'c')] -``` -#### Combinations with Replacement -```python >>> ombinations_with_replacement('abc', 2) [('a', 'a'), ('a', 'b'), ('a', 'c'), ('b', 'b'), ('b', 'c'), ('c', 'c')] -``` -#### Permutations -```python >>> permutations('abc', 2) [('a', 'b'), ('a', 'c'), ('b', 'a'), ('b', 'c'), ('c', 'a'), ('c', 'b')] ``` -#### Product -```python >>> product('ab', [1, 2]) [('a', 1), ('a', 2), ('b', 1), ('b', 2)] ```