diff options
Diffstat (limited to 'challenge-272/luca-ferrari/python/ch-1.py')
| -rw-r--r-- | challenge-272/luca-ferrari/python/ch-1.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/challenge-272/luca-ferrari/python/ch-1.py b/challenge-272/luca-ferrari/python/ch-1.py new file mode 100644 index 0000000000..02c5837ce1 --- /dev/null +++ b/challenge-272/luca-ferrari/python/ch-1.py @@ -0,0 +1,20 @@ +#!python + +# +# Perl Weekly Challenge 272 +# Task 1 +# +# See <https://perlweeklychallenge.org/blog/perl-weekly-challenge-272> +# + +import sys + +# task implementation +# the return value will be printed +def task_1( args ): + return args[ 0 ].replace( '.', '[.]' ) + + +# invoke the main without the command itself +if __name__ == '__main__': + print( task_1( sys.argv[ 1: ] ) ) |
