aboutsummaryrefslogtreecommitdiffstats
path: root/06-Sum-Square-Difference/sumsq.py
diff options
context:
space:
mode:
Diffstat (limited to '06-Sum-Square-Difference/sumsq.py')
-rw-r--r--06-Sum-Square-Difference/sumsq.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/06-Sum-Square-Difference/sumsq.py b/06-Sum-Square-Difference/sumsq.py
index fdd43e4..6882eb6 100644
--- a/06-Sum-Square-Difference/sumsq.py
+++ b/06-Sum-Square-Difference/sumsq.py
@@ -10,14 +10,11 @@
import PIL
import math
-nums = range(1, 11)
-numsq = range(1, 11)
+nums = range(1, 101)
+numsq = []
for i in nums:
- i = i*i
-
-print(nums)
-print(numsq)
+ numsq.append(i*i)
sum1 = (sum(nums)**2)
sum2 = (sum(numsq))