Skip to content

Instantly share code, notes, and snippets.

@prav-raghu
Created January 25, 2022 19:08
Show Gist options
  • Save prav-raghu/0bf641654a62efab2e98ae743d9e5825 to your computer and use it in GitHub Desktop.
Save prav-raghu/0bf641654a62efab2e98ae743d9e5825 to your computer and use it in GitHub Desktop.
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