given a positive integer num write a function which returns true if num is a perfect square else false note do not use any builtin library function such as sqrt type num int rtype bool test given a positive integer num write a function which returns true if num is a perfect square else false note do not use any built in library function such as sqrt type num int rtype bool test
def is_perfect_square(num):
    
    i = 0
    while i * i < num:
        i += 1
    if i * i == num:
        return True
    else:
        return False
        


print(is_perfect_square(16))
print(is_perfect_square(14))