-
-
Notifications
You must be signed in to change notification settings - Fork 568
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c908877
commit 7366a44
Showing
12 changed files
with
375 additions
and
74 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,15 +8,16 @@ This simply how to implement the module of permutations in python. | |
|
||
{% highlight ruby %} | ||
>>> from itertools import permutations | ||
>>> | ||
>>> perms = [''.join(p)+"@gmail.com" for p in permutations('abc', 3)] | ||
>>> for x in range(0, len(perms)): | ||
... print (perms[x]) | ||
... | ||
>>> for email in perms: | ||
... print(email) | ||
... | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
>>> | ||
{% endhighlight %} | ||
>>> | ||
{% endhighlight %} |
Oops, something went wrong.