aboutsummaryrefslogtreecommitdiff
path: root/challenge-219/sgreen/python/ch-1.py
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-219/sgreen/python/ch-1.py')
-rwxr-xr-xchallenge-219/sgreen/python/ch-1.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/challenge-219/sgreen/python/ch-1.py b/challenge-219/sgreen/python/ch-1.py
new file mode 100755
index 0000000000..f3e6fb57f9
--- /dev/null
+++ b/challenge-219/sgreen/python/ch-1.py
@@ -0,0 +1,13 @@
+#!/usr/bin/env python
+
+import sys
+
+
+def main(array):
+ solution = sorted([x ** 2 for x in array])
+ print(*solution, sep=', ')
+
+
+if __name__ == '__main__':
+ array = [int(n) for n in sys.argv[1:]]
+ main(array)