what is the solution of this by python 3 ?
Given an array of integers, return indices of the two numbers such that they add up to a spe
This question has 2 parts:
Retrieving their index value
def get_index_for_target(nums, target):
for x in nums: for y in nums: if x + y == target: return (nums.index(x), nums.index(y))