Given a list of integers, return a new list where each element is the sum of all the elements in the original list except the current element. Try to solve it without using any built-in Python functions.
Example:
Input:
[2, 3, 1, 4]
Output:
[8, 7, 9, 6]
Make sure you return your solution, don't print!
AI
Bot
Trying to solve my challenge? Ask if you must, or press the purple button so I can analyze your code.