Skip to content

Instantly share code, notes, and snippets.

@ceaksan
Last active May 28, 2021 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ceaksan/8240c650c1934c53f803037a58b50bc8 to your computer and use it in GitHub Desktop.
Save ceaksan/8240c650c1934c53f803037a58b50bc8 to your computer and use it in GitHub Desktop.
import random
odd = random.sample(range(1, 10), 5)
even = random.sample(range(2, 11), 5)
merged = odd + even
for k in [i*2 for i in merged if(type(i)==int)]:
print(k)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment