Skip to content

Commit 19b7467

Browse files
committed
Add new file
1 parent a161847 commit 19b7467

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

square_sum.py

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#Function returns the sum of the squares of each number in numbers.
2+
def square_sum(numbers):
3+
count = 0
4+
for i in numbers:
5+
count += i*i
6+
return count
7+
8+
square_sum([1, 2, 3])

0 commit comments

Comments
 (0)