From 45892f35c3d5306dc9498cc404169a21486a2bf9 Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Mon, 29 Jan 2024 04:49:37 +0000 Subject: - Added template for week 254. --- challenge-253/luca-ferrari/python/ch-1.python | 28 --------------------------- 1 file changed, 28 deletions(-) delete mode 100644 challenge-253/luca-ferrari/python/ch-1.python (limited to 'challenge-253/luca-ferrari/python/ch-1.python') diff --git a/challenge-253/luca-ferrari/python/ch-1.python b/challenge-253/luca-ferrari/python/ch-1.python deleted file mode 100644 index 07a97f09cd..0000000000 --- a/challenge-253/luca-ferrari/python/ch-1.python +++ /dev/null @@ -1,28 +0,0 @@ -#!python - -# -# Perl Weekly Challenge 253 -# Task 1 -# -# See -# - -import sys -import re - -# task implementation -# the return value will be printed -def task_1( args ): - separator = args[ 0 ]; - split_words = [] - for i in range( 1, len( args ) ): - current_words = args[ i ] - for w in re.split( "[%s]" % separator, current_words ): - split_words.append( w ) - - return ','.join( split_words ) - - -# invoke the main without the command itself -if __name__ == '__main__': - print( task_1( sys.argv[ 1: ] ) ) -- cgit