Answer to Question #278942 in Python for shaik

Question #278942

arr1 = ["january","february","march","april","may","june"]

arr2 = ["july","august","septmber","october","november","december"]


first array value should be as key and second one as value

print //     ex: arr = [january= "July",february="äugust"]


1
Expert's answer
2021-12-13T00:02:02-0500
arr1 = ["january","february","march","april","may","june"]


arr2 = ["july","august","septmber","october","november","december"]


arr_result = []


for i in range(6):
    arr_result.append(arr1[i]+'='+arr2[i])


print(*arr_result)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS