# #Given an array of integers, return indices of the two numbers such that they add up to a specific target.
# #You may assume that each input would have exactly one solution, and you may not use the same element twice.


class Solution(object):
    def twoSum(self, nums, target):
        """
        :type nums: List[int]
        :type target: int
        :rtype: List[int]
        """
        
        for i in range(0, len(nums)):
            for j in range(0, len(nums)):
                
                if i != j:
                    if nums[i] + nums[j] == target:
                        return [i,j]

Create 01.py