summaryrefslogtreecommitdiff
path: root/progs/a952.py
blob: b2fcd032588c846e766afc9a2a92423d3c3b7e05 (plain)
1
2
3
4
5
6
7
8
9
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