Commit c1d4d004 authored by ORSU AKHIL's avatar ORSU AKHIL

TASK B1

parent 676fbd42
#!/usr/bin/python
def function1(str1, str2, listVar):
tuples = list(map( lambda x,y:(x,y), str1, str2))
return listVar + tuples
mylist = ["a", "b", "c", "d", "e"]
newlist = function1("color", "vibgyor", mylist)
print (mylist)
print (newlist)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment