Created
January 25, 2022 19:08
-
-
Save prav-raghu/0bf641654a62efab2e98ae743d9e5825 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(data): | |
squares = [] | |
for k in list(range(1,data)): | |
squares.append(k*k) | |
return squares | |
print(square(5)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment