Skip to content

Instantly share code, notes, and snippets.

@juanjoseexpositogonzalez
Created July 28, 2025 07:52
Show Gist options
  • Select an option

  • Save juanjoseexpositogonzalez/eeeea7b4b6f91f8e5bcd754d1d3e0a08 to your computer and use it in GitHub Desktop.

Select an option

Save juanjoseexpositogonzalez/eeeea7b4b6f91f8e5bcd754d1d3e0a08 to your computer and use it in GitHub Desktop.
Code snippet: List comprehension
l = [num for num in range(101) if num%2]
print(l)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment