<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def mod_issquare(a, p):
 """ Returns whether `a' is a square modulo p """

    if not a:
        return True
    p1 = p // 2
    p2 = pow(a, p1, p)
    return p2 == 1