I would like to know if anyone could help me with this code in order to calculate neighbor numbers (common numbers) in two Arrays, but does not return output.
i = 0
j = 0
k = 0
input1 = input()
input2 = input()
input1.split(", ")
input2.split(", ")
while i < len(input1):
while j < len(input2):
if input1[i] == input2[j]:
result = input1[i]
print(result)
j = j + 1
i = i + 1