aboutsummaryrefslogtreecommitdiff
path: root/challenge-095/abigail/python/ch-1.py
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-095/abigail/python/ch-1.py')
-rw-r--r--challenge-095/abigail/python/ch-1.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/challenge-095/abigail/python/ch-1.py b/challenge-095/abigail/python/ch-1.py
new file mode 100644
index 0000000000..5378ca65f6
--- /dev/null
+++ b/challenge-095/abigail/python/ch-1.py
@@ -0,0 +1,9 @@
+import fileinput
+import re
+
+for line in fileinput . input ():
+ line = line . rstrip ()
+ if (re . match (r'^\d+(\.\d+)?$', line) and line == line [::-1]):
+ print 1
+ else:
+ print 0