Last active
January 26, 2022 18:25
-
-
Save prav-raghu/3d08c6ff3a3be0b66137c24d8923b0f6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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): | |
total = 0 | |
for k in range(1, n): | |
if(k % 2 != 0): | |
total +=(k*k) | |
return total | |
print(square(5)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment