map to add strings

Question

Add ( “i”, “love”, “python”) and (“just”, “the”, “most”)

using map()

in progress 0
YashikaKhurana 4 years 2 Answers 859 views Master 0

Answers ( 2 )

  1. def adds(a,b):
    return a+b

    a=map(adds, (“i”, “love”, “python”), (“just”, “the”, “most”))

  2. def myfunc(a,b):
    return a + b

    x = map(myfunc, (“i”, “love”, “python”), (“just”, “the”, “most”))

Leave an answer

Browse
Browse