Created
January 26, 2022 18:28
-
-
Save prav-raghu/e94ce3c8b2db4d0893287443bfef4964 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 square(n): | |
squares = sum(k*k for k in range(1, n) if k % 2 != 0 and k > 0) | |
return squares | |
print(square(5)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment