class Solution(object):
def searchInsert(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: int
"""
if nums.count(target) > 0:
return nums.index(target)
for (index, num) in enumerate(nums):
if num < target:
continue
return index
return len(nums)