Skip to content

Instantly share code, notes, and snippets.

@karcan
Created May 26, 2021 15: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 karcan/dda2b3b46f72763ecc99975e02788d03 to your computer and use it in GitHub Desktop.
Save karcan/dda2b3b46f72763ecc99975e02788d03 to your computer and use it in GitHub Desktop.
listOdd = [1,3,5,7,9]
listEven = [2,4,6,8,10]
newList = [number * 2 for number in listOdd + listEven]
for number in newList:
print(type(number))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment