We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be1eb90 commit 37d086bCopy full SHA for 37d086b
firstAlgorithm.py
@@ -0,0 +1,10 @@
1
+def square(tosquare):
2
+ running_total = 0
3
+ for i in range(tosquare):
4
+ running_total += tosquare
5
+
6
+ return running_total
7
8
+tosquare = int(input('> '))
9
+result = square(tosquare)
10
+print(f'The square of {tosquare} is {result}')
0 commit comments