Skip to content

Instantly share code, notes, and snippets.

@ShadowofZeus
Created November 29, 2019 13:18
Show Gist options
  • Save ShadowofZeus/c7d3a765bd2cee2741cdbdddac1717cc to your computer and use it in GitHub Desktop.
Save ShadowofZeus/c7d3a765bd2cee2741cdbdddac1717cc to your computer and use it in GitHub Desktop.
a_list=random.sample(range(15), 7)
b_list = random.sample(range(10), 10)
newlist=[]
customlist = [newlist.append(b) for a in a_list for b in b_list if a==b]
print(newlist)
@ShadowofZeus
Copy link
Author

I nailed it raw!!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment