<prompt> Kutokana na idadi kamili ya namba, kurudi kweli kama namba ni kamili ya mraba au uongo vinginevyo. mraba kamili ni integer ambayo ni mraba wa integer. Kwa maneno mengine, ni bidhaa ya baadhi integer na yenyewe. Haupaswi kutumia yoyote kujengwa katika maktaba kazi, kama vile sqrt.  <response>: Heres the solution in Python:def isPerfectSquarenum: i 1 while ii num: if ii num: return True i 1 return FalseThe function takes in a positive integer num and checks if it is a perfect square by iterating through all numbers i starting from 1 and checking if ii equals num. If ii exceeds num, then num is not a perfect square and the function returns False. 