aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-090/abigail/README.md1
-rw-r--r--challenge-090/abigail/python/ch-1.py7
2 files changed, 8 insertions, 0 deletions
diff --git a/challenge-090/abigail/README.md b/challenge-090/abigail/README.md
index c89a14792e..f213583796 100644
--- a/challenge-090/abigail/README.md
+++ b/challenge-090/abigail/README.md
@@ -31,6 +31,7 @@ To get the complementary sequence use the following mapping:
* [C](c/ch-1.c)
* [Node.js](node/ch-1.js)
* [Perl](perl/ch-1.pl)
+* [Python](python/ch-1.py)
* [SQL (SQLite)](sql/ch-1.sql) ([Table definition](sql/ch-1.table))
# Task 2: Ethiopian Multiplication
diff --git a/challenge-090/abigail/python/ch-1.py b/challenge-090/abigail/python/ch-1.py
new file mode 100644
index 0000000000..74b7ad4f18
--- /dev/null
+++ b/challenge-090/abigail/python/ch-1.py
@@ -0,0 +1,7 @@
+import fileinput
+import string
+
+for line in fileinput . input ():
+ line = line . rstrip ()
+ print len (line)
+ print line . translate (string . maketrans ("ATCG", "TAGC"))