1. Background: python 3/win10
2. Error Line:
idx = nums.index[target-operand1]
3. Solution
index() is a function on lists, so use parentheses instead of square brackets
idx = nums.index(target-operand1)
1. Background: python 3/win10
2. Error Line:
idx = nums.index[target-operand1]
3. Solution
index() is a function on lists, so use parentheses instead of square brackets
idx = nums.index(target-operand1)