Skip to content

Commit 146d848

Browse files
authored
Update ex2.1FindingTheSum.py
1 parent 06e4f06 commit 146d848

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ex2.1FindingTheSum.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
# Find the sum of l numbers from 1 to a given number.
22

3-
form turtle import *
4-
shape('turtle')
5-
63
def FindSum(maxLimit=100):
74
summ=0
85
for i in range(maxLimit):
96
summ+=(i+1)
10-
return summ
7+
return summ

0 commit comments

Comments
 (0)