Easy Beginner Friendly Python Solution :)
Easy Beginner Friendly Python Solution :)\n Describe your first thoughts on how to solve this problem. \n\n\n# Run Time\n Describe your approach to solving the 
# Easy Beginner Friendly Python Solution :)\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n\n# Run Time\n<!-- Describe your approach to solving the problem. -->\nBeats 98.87%\n\n# Memory\n<!-- Describe your approach to solving the problem. -->\nBeats 62.89%\n\n\n\n# Code\n```\nclass Solution:\n    def addToArrayForm(self, num: List[int], k: int) -> List[int]:\n        ans=[]\n        n=len(num)\n        while n>0 or k!=0:\n            if n>0:\n                n -=1\n                k+=num[n]\n            ans.append(k%10)\n            k=k//10\n        newlis=ans[::-1]\n        return newlis\n```\n![neko ask upvote.jpeg](https://assets.leetcode.com/users/images/80711c8a-144f-49ed-844f-4ad4bd029fd2_1691001342.2790887.jpeg)\n\n
['Python3']