Refactored extract method tests

This commit is contained in:
Andrey Vlasovskikh
2012-05-22 22:23:35 +04:00
parent cf23be8e1f
commit c10a567b73
53 changed files with 321 additions and 58 deletions
@@ -0,0 +1,12 @@
def sum_squares(a_new, result_new):
while a_new < 10:
result_new += a_new * a_new
a_new += 1
return result_new
def f():
a = 10
result = 0
result = sum_squares(a, result)
print("Sum of squares: " + result)