summaryrefslogtreecommitdiff
path: root/progs/a156.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a156.py')
-rw-r--r--progs/a156.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/progs/a156.py b/progs/a156.py
new file mode 100644
index 0000000..babdcbe
--- /dev/null
+++ b/progs/a156.py
@@ -0,0 +1,4 @@
+def count_reverse_pairs(test_list):
+ res = sum([1 for idx in range(0, len(test_list)) for idxn in range(idx, len(
+ test_list)) if test_list[idxn] == str(''.join(list(reversed(test_list[idx]))))])
+ return str(res) \ No newline at end of file