aboutsummaryrefslogtreecommitdiff
path: root/challenge-254/luca-ferrari/python/ch-1.python
diff options
context:
space:
mode:
authorMohammad S Anwar <mohammad.anwar@yahoo.com>2024-02-12 05:16:50 +0000
committerMohammad S Anwar <mohammad.anwar@yahoo.com>2024-02-12 05:16:50 +0000
commit3f3e0798a68401ce1d67a5e1534f69de16856e82 (patch)
tree9408a5bc4b474bb4640a09e110ea393a41937cfc /challenge-254/luca-ferrari/python/ch-1.python
parentbd6a46c20b9336b3d2758b8124287c9617f1656b (diff)
downloadperlweeklychallenge-club-3f3e0798a68401ce1d67a5e1534f69de16856e82.tar.gz
perlweeklychallenge-club-3f3e0798a68401ce1d67a5e1534f69de16856e82.tar.bz2
perlweeklychallenge-club-3f3e0798a68401ce1d67a5e1534f69de16856e82.zip
- Added template for the week 256.
Diffstat (limited to 'challenge-254/luca-ferrari/python/ch-1.python')
-rw-r--r--challenge-254/luca-ferrari/python/ch-1.python26
1 files changed, 0 insertions, 26 deletions
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 <https://perlweeklychallenge.org/blog/perl-weekly-challenge-254>
-#
-
-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: ] ) )