Skip to content

Instantly share code, notes, and snippets.

@alikarimi120
Created March 1, 2022 04:03
Show Gist options
  • Save alikarimi120/516518c2c830499f9045990d3dd7ddd0 to your computer and use it in GitHub Desktop.
Save alikarimi120/516518c2c830499f9045990d3dd7ddd0 to your computer and use it in GitHub Desktop.
nums = [0, 1, 2, 3, 4]
squares = [x ** 2 for x in nums]
print(squares)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment