Awesome Logic Python3
```\nclass Solution:\n    def insert(self, intervals: List[List[int]], newInterval: List[int]) -> List[List[int]]:\n        list1=[]\n        for i in range(len
```\nclass Solution:\n    def insert(self, intervals: List[List[int]], newInterval: List[int]) -> List[List[int]]:\n        list1=[]\n        for i in range(len(intervals)):\n            if newInterval[1]<intervals[i][0]:\n                list1.append(newInterval)\n                return list1+intervals[i:]\n            elif newInterval[0]>intervals[i][1]:\n                list1.append(intervals[i])\n            else:\n                newInterval=[min(newInterval[0],intervals[i][0]),max(intervals[i][1],newInterval[1])]\n        list1.append(newInterval)\n        return list1\n                \n````\n# please upvote me it would encourage me alot\n
['Python3']