Skip to content

Instantly share code, notes, and snippets.

@ZhouYang1993
Created September 20, 2022 21:07
Show Gist options
  • Save ZhouYang1993/ee780e802a24523a2222a4d4c871e7eb to your computer and use it in GitHub Desktop.
Save ZhouYang1993/ee780e802a24523a2222a4d4c871e7eb to your computer and use it in GitHub Desktop.
11 Stunning Python One-Liners That Amazed Me
add_vec= lambda A,B:[ai+bi for (ai, bi) in zip(A, B)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment