aboutsummaryrefslogtreecommitdiff
path: root/challenge-256/luca-ferrari/python/ch-1.python
diff options
context:
space:
mode:
authorMohammad S Anwar <mohammad.anwar@yahoo.com>2024-02-15 19:30:30 +0000
committerMohammad S Anwar <mohammad.anwar@yahoo.com>2024-02-15 19:30:30 +0000
commitb4722f365b56ebb8a01ce4d4b136f16d26698cd6 (patch)
tree671e1e5ccf8398e3fe50c8b906d5273c8a13d3dc /challenge-256/luca-ferrari/python/ch-1.python
parentba0f5eb3f7a05d585395604ed817a77f79e311af (diff)
downloadperlweeklychallenge-club-b4722f365b56ebb8a01ce4d4b136f16d26698cd6.tar.gz
perlweeklychallenge-club-b4722f365b56ebb8a01ce4d4b136f16d26698cd6.tar.bz2
perlweeklychallenge-club-b4722f365b56ebb8a01ce4d4b136f16d26698cd6.zip
- Added solutions by Luca Ferrari.
- Added solutions by Athanasius. - Added solutions by Laurent Rosenfeld. - Added solutions by Mohammad Meraj Zia.
Diffstat (limited to 'challenge-256/luca-ferrari/python/ch-1.python')
-rw-r--r--challenge-256/luca-ferrari/python/ch-1.python26
1 files changed, 0 insertions, 26 deletions
diff --git a/challenge-256/luca-ferrari/python/ch-1.python b/challenge-256/luca-ferrari/python/ch-1.python
deleted file mode 100644
index e8456319db..0000000000
--- a/challenge-256/luca-ferrari/python/ch-1.python
+++ /dev/null
@@ -1,26 +0,0 @@
-#!python
-
-#
-# Perl Weekly Challenge 256
-# Task 1
-#
-# See <https://perlweeklychallenge.org/blog/perl-weekly-challenge-256>
-#
-
-import sys
-
-# task implementation
-# the return value will be printed
-def task_1( args ):
- max = 0
- for w in args:
- count = len( list( filter( lambda rw: rw == ''.join( reversed( w ) ), args ) ) )
- if count > max:
- max = count
-
- return max
-
-
-# invoke the main without the command itself
-if __name__ == '__main__':
- print( task_1( sys.argv[ 1: ] ) )