Skip to content

Instantly share code, notes, and snippets.

@BetterProgramming
Created September 14, 2020 15:00
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 BetterProgramming/c38a23f90e73292301606004c122d2a7 to your computer and use it in GitHub Desktop.
Save BetterProgramming/c38a23f90e73292301606004c122d2a7 to your computer and use it in GitHub Desktop.
def multiply(x,y,z):
return x*y*z
num1=[1,2,3,4]
num2=[2,4,6,8]
num3=[2,3,4,5]
s=map(multiply,num1,num2,num3)
print (list(s))#Output:[4, 24, 72, 160]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment