From 4f21a4d9c543cbd88054eafd401e65985b213942 Mon Sep 17 00:00:00 2001
From: agusmakmun <summon.agus@gmail.com>
Date: Tue, 19 Apr 2016 19:33:11 +0700
Subject: [PATCH] Add post

---
 .../2016-04-19-python-permutations.markdown   | 22 +++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 _posts/2016-04-19-python-permutations.markdown

diff --git a/_posts/2016-04-19-python-permutations.markdown b/_posts/2016-04-19-python-permutations.markdown
new file mode 100644
index 0000000..10c8146
--- /dev/null
+++ b/_posts/2016-04-19-python-permutations.markdown
@@ -0,0 +1,22 @@
+---
+layout: post
+title:  "Python Permutations"
+date:   2016-04-19 19:31:43 +0700
+categories: [python]
+---
+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])
+... 
+abc@gmail.com
+acb@gmail.com
+bac@gmail.com
+bca@gmail.com
+cab@gmail.com
+cba@gmail.com
+>>> 
+{% endhighlight %}
\ No newline at end of file
-- 
GitLab