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/6656de461848acb03e88f44efcbe79df to your computer and use it in GitHub Desktop.
Save BetterProgramming/6656de461848acb03e88f44efcbe79df to your computer and use it in GitHub Desktop.
def multiply(x):
return x
num1=[1,2,3,4]
num2=[2,4,6,8]
s=map(multiply,num1,num2)
print (list(s))
#Output:TypeError: multiply() takes 1 positional argument but 2 were given
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment