We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
for i in range(len(arr1)):
for j in range(len(arr2)):
print((arr1[i], arr2[j]),sep="", end=" ")
// MY CODE RUN SUCCESSFULLY BUT ALL THE TEST CASES ARE FAIL WHY
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
itertools.product()
You are viewing a single comment's thread. Return to all comments →
m=map(int,input().split()) arr1=list(map(int,input().split())) n=map(int,input().split()) arr2=list(map(int,input().split()))
for i in range(len(arr1)): for j in range(len(arr2)): print((arr1[i], arr2[j]),sep="", end=" ") // MY CODE RUN SUCCESSFULLY BUT ALL THE TEST CASES ARE FAIL WHY