Skip to content

Instantly share code, notes, and snippets.

@molarmanful
Created September 18, 2019 20:04
Show Gist options
  • Save molarmanful/2c94ab0702e23fdb562838898e8bc6d1 to your computer and use it in GitHub Desktop.
Save molarmanful/2c94ab0702e23fdb562838898e8bc6d1 to your computer and use it in GitHub Desktop.
id = [int((x + 1) ** .5 == int((x + 1) ** .5)) for x in range(len(matrix))]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment