
새로 배운 사실:
list()는 argumet를 1개만 받을 수 있습니다.
그러므로 원소 여러 개를 튜플로 묶은 뒤 변수 하나에 저장하고,
그 다음 변수를 list() 함수를 이용해 리스트로 만들어줍니다.
class Solution:
def twoSum(self, nums: List[int], target: int) -> List[int]:
for i in range(len(nums)-1):
for j in range(len(nums)):
if i != j:
if nums[i] + nums[j] == target:
Answer = [i,j]
return Answer