Skip to content

Instantly share code, notes, and snippets.

@prav-raghu
Created January 25, 2022 19:14
Show Gist options
  • Save prav-raghu/b7d3f93d4b91d3ad74e83b083b79f896 to your computer and use it in GitHub Desktop.
Save prav-raghu/b7d3f93d4b91d3ad74e83b083b79f896 to your computer and use it in GitHub Desktop.
def square(n):
squares = [k*k for k in range(1, n)]
return squares
print(square(100))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment