## A square of squares
You like building blocks. You especially like building blocks that are squares. And what you even like more, is to arrange them into a square of square building blocks!

However, sometimes, you can't arrange them into a square. Instead, you end up with an ordinary rectangle! Those blasted things! If you just had a way to know, whether you're currently working in vain… Wait! That's it! You just have to check if your number of building blocks is a _perfect square_.

## Task

Given an integral number, determine if it's a [square number](https://en.wikipedia.org/wiki/Square_number):

> In mathematics, a __square number__ or __perfect square__ is an integer that is the square of an integer; in other words, it is the product of some integer with itself.

The tests will _always_ use some integral number, so don't worry about that in dynamic typed languages.

### Examples

```
-1  =>  false
 0  =>  true
 3  =>  false
 4  =>  true
25  =>  true
26  =>  false
```

Difficulty: introductory

Starter code:

def is_square(n):
	

Solutions:
import math
def is_square(n):
    return n > -1 and math.sqrt(n) % 1 == 0;

import math

def is_square(n):    

    if n < 0:
        return False

    sqrt = math.sqrt(n)
    
    return sqrt.is_integer()

def is_square(n):    
    return n >= 0 and (n**0.5) % 1 == 0

import math
def is_square(n):    
    try:
        return math.sqrt(n).is_integer()
    except ValueError:
        return False

def is_square(n):    
    if n>=0:
        if int(n**.5)**2 == n:
            return True
    return False

import math
def is_square(n):
  return n >= 0 and int(math.sqrt(n)) ** 2 == n

from math import sqrt

def is_square(n):    
    return n>=0 and sqrt(n).is_integer()

from math import sqrt
def is_square(n):  
    if n<0:
        return False
    count=0
    m=int(sqrt(n))
    if m*m==n:
        count=1
    if count==1:
        return True
    else :
        return False

import math

def is_square(n):
    if n < 0:
        return False
    r = math.sqrt(n)
    r = math.floor(r)
    return r * r == n

import math

def is_square(n):
    if n < 0:
        return False
    return (int(math.sqrt(n)) - math.sqrt(n)) == 0