summaryrefslogtreecommitdiff
path: root/progs/a952.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a952.py')
-rw-r--r--progs/a952.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/progs/a952.py b/progs/a952.py
new file mode 100644
index 0000000..b2fcd03
--- /dev/null
+++ b/progs/a952.py
@@ -0,0 +1,10 @@
+def perfect_squares(a, b):
+ lists=[]
+ for i in range (a,b+1):
+ j = 1;
+ while j*j <= i:
+ if j*j == i:
+ lists.append(i)
+ j = j+1
+ i = i+1
+ return lists \ No newline at end of file