mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Refactored extract method tests
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user