Here, the fastest method I would say is to just use math. To do this, you need to put this line at the top of your program: import math
Then, this would be the syntax to check the square root: math.sqrt(num)
Another method with just regular arithmetic is to do num**(0.5), although I am pretty sure math.sqrt does it faster anyway.