From 3f3e0798a68401ce1d67a5e1534f69de16856e82 Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Mon, 12 Feb 2024 05:16:50 +0000 Subject: - Added template for the week 256. --- challenge-254/luca-ferrari/python/ch-1.python | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 challenge-254/luca-ferrari/python/ch-1.python (limited to 'challenge-254/luca-ferrari/python/ch-1.python') diff --git a/challenge-254/luca-ferrari/python/ch-1.python b/challenge-254/luca-ferrari/python/ch-1.python deleted file mode 100644 index a0533551d8..0000000000 --- a/challenge-254/luca-ferrari/python/ch-1.python +++ /dev/null @@ -1,26 +0,0 @@ -#!python - -# -# Perl Weekly Challenge 254 -# Task 1 -# -# See -# - -import sys -import math - -# task implementation -# the return value will be printed -def task_1( args ): - num = int( args[ 0 ] ) - for i in range( 2, int( math.sqrt( num ) ) ): - if ( i ** 3 ) == num: - return True - - return False - - -# invoke the main without the command itself -if __name__ == '__main__': - print( task_1( sys.argv[ 1: ] ) ) -- cgit