Skip to content

Commit 346b79d

Browse files
authored
Add files via upload
1 parent 5a1ab05 commit 346b79d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ex2.1FindingTheSum.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Find the sum of l numbers from 1 to a given number.
2+
3+
form turtle import *
4+
shape('turtle')
5+
6+
def FindSum(maxLimit=100):
7+
summ=0
8+
for i in range(maxLimit):
9+
summ+=(i+1)
10+
return summ

0 commit comments

Comments
 (0)