Answer
def CodeWrite (num):
while (num < 100):
flag=0;
for (i = 1; i <= num/2; ++i):
if (i*i == num):
flag = 1;
break;
if (i*i>num) break;
if (flag == 0) print (num);
num ++;
Work Step by Step
The above code checks for all value of i from 1 to num/2 if any of them is the exact square root of the num then num is a perfect square and it's value is printed.