Files
openide/python/testData/refactoring/extractmethod/OutNotEmptyStatements2.before.py
2012-05-22 22:23:35 +04:00

8 lines
165 B
Python

def f():
a = 1
<selection>result = 0
while a < 10:
result += a * a
a += 1</selection>
print("Sum of squares: " + a + " = " + result)