Skip to content

Instantly share code, notes, and snippets.

@freedomtowin
Created June 28, 2025 21:17
Show Gist options
  • Save freedomtowin/3d519cf1afa9d32cfec143318b7d68ad to your computer and use it in GitHub Desktop.
Save freedomtowin/3d519cf1afa9d32cfec143318b7d68ad to your computer and use it in GitHub Desktop.
Example of creating a Gist using Python
xs = [-1, 2, 2, 3, 4]
out = [x * 2 for x in xs if x > 0]
# out = [-1, 4, 4, 6, 8]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment