Skip to content

Commit 4c0b466

Browse files
committed
Moving all exercise scripts file into this directory. It would be easy to search.
1 parent 4e11046 commit 4c0b466

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Recursion/RecursionTechniq.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def sumOfList(inp):
66
s = 0
77
for i in inp:
88
s = s +i
9-
print s
9+
print (s)
1010
return s
1111

1212
#Recurssion methodology now
@@ -31,6 +31,6 @@ def listsum(numList):
3131
return numList
3232

3333
if __name__ == '__main__':
34-
sumOfList([1,2,3,6,7,8,9,065,6])
34+
sumOfList([1,2,3,6,7,8,9,65,6])
3535
sumRec([1,90,80,700]) # 3 RECURSSIVE CALLS WIL HAPPEN (TOTAL LENGTH - 1)
3636
listsum([1,90,80,700])

0 commit comments

Comments
 (0)