Created
February 7, 2015 08:06
-
-
Save ssanin82/8b47819bb9f219310005 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def is_square(integer): | |
root = math.sqrt(integer) | |
if int(root + 0.5) ** 2 == integer: | |
return True | |
else: | |
return False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment